Porting from Flash to iOS
来源:互联网 发布:美橙互联域名如何备案 编辑:程序博客网 时间:2024/06/06 01:47
This article describes the process of porting a Stencyl-made Flash game to iOS. Porting involves 3 steps.
- Convert the game to a mobile game
- Clean up behaviors that use Flash-specific functionality
- Import double-resolution graphics
Before You Begin...
Back up your game, just in case something goes wrong.
If the game uses any Code Mode behaviors (as opposed to Design Mode behaviors with embedded code), you must remove those behaviors before porting your game over.
Step 1: Convert to a Mobile Game
First, check the File menu for the option “Convert to Mobile Game.”
You’ll be prompted to save the game. Click yes. After that, the game will automatically close and reopen.
If you’re on a Mac, try running the game in the simulator right away. If you’re lucky, it’ll run without a hitch. If not, read on...
Step 2: Clean Up Behaviors
Your game may be using functionality that’s only available in our Flash engine. If you try running your game as-is, and it crashes or is missing functionality, this might be the case.
The good news is that resolving this issue is fairly simple. First, locate any blocks that have the Flash icon on them.
Wrap logic that uses these blocks in a “do only in Flash” block (Flow > Advanced). That’s it!
If you continue running into issues, consult our Debugging guide for details.
Step 3: Import 2x Graphics
After confirming that your game runs, you’ll want to import all the graphics back in at double-resolution, or else they will appear pixelated on newer devices that contain a Retina (HD) Display.
Consult the Retina Display guide for details.
Tips & Gotchas
1) Convert mouse input to the equivalent touch blocks (show below). They work with both touch and the mouse!
2) Objects are smaller than you’d expect on an iPhone or iPod touch. The actual dots per inch (DPI) is significantly higher, which means anything displayed will appear smaller. You may need to increase their size when porting over to the iPhone.
3) Mobile devices are more sensitive when it comes to performance. Keep that in mind when designing your game.
4) Text Drawing can drag performance down. Use Labels instead.
5) You may get a message about the Atlas size being exceeded. Consult the Atlas guide for details.
- Porting from Flash to iOS
- Porting a "classic" Flash game to iOS
- driver porting from Android to My kernel
- Guide to porting from Solaris to Linux on x86
- From Zero to Boot: Porting Android to your ARM platform
- From Zero to Boot: Porting Android to your ARM platform
- Hot Potato: Porting the System from Windows to Solaris
- [gstreamer] [002] porting from 0.10 to 1.0 knew how
- Porting a Driver from UMDF 1 to UMDF 2
- From Flash to Flex: Understanding Flex Events
- CEGUI 0.6和0.7区别 Porting from CEGUI 0.6.x to CEGUI 0.7.x
- Odoo ORM API(七)- Porting from the old API to the new API
- Porting Android to S3C6410
- Porting Lua to ARM
- How to porting webkit
- Porting LTP to Android
- Porting iperf to Android
- From SWF to AIR to iOS application
- 线性代数导论13——第一阶段总结
- adsl-start.sh 分析
- 使用仪表盘设计模式
- iptables 命令介绍
- 同时获取窄宽字节命令行参数,windows下可调用windows api,linux下尚未找到
- Porting from Flash to iOS
- python取得IMAP服务器邮件
- android notification 的总结分析
- Lotus 迁移到Exchange 之 Lotus 与Exchange 路由设置!
- iOS 使用Quartz 2D画虚线
- 设计一个堆栈,函数min、push 以及pop 的时间复杂度都是O(1)
- linux中提供了PF_PACKET接口可以操作链路层的数据
- 大话数据结构开篇:时间复杂度和空间复杂度
- UVA 10236 The Fibonacci Primes