电晕中的代码组织和场景。放什么地方?
Code organisation and scenes in corona. What to put where?
我对 corona sdk 比较陌生,想知道组织代码的最佳方式。我有一些具有一些简单动画的基本精灵,我一直在玩场景以尝试创建主菜单和播放区域。对于设置 sprite 序列和 sprite 选项之类的东西,我应该在另一个模块中执行此操作然后调用它吗?只有当我有多个级别时,这才重要吗?
另外,我应该在 main.lua 中声明什么?只是全局变量?或者这是我可以做所有 sprite 东西的地方?
提前致谢。
查看
Match Three Space RPG Game Template Series - 浏览具有 space RPG 主题的免费三消游戏模板。该项目由 Ponywolf 为 Corona 社区开发。
coronalabs/Match-Three-Space-RPG 在 Github、
Sticker Knight Game Design - Brainstorming Ideas - Michael Wilson from Ponywolf shares insights into the creative game design process his team uses to come up with games like Sticker Knight, Time Golf Squad, and Skipchaser and other great games. Once the planning is finished, the Ponywolf team uses Corona SDK to bring their ideas to life. Corona is a cross platform mobile SDK that makes it easy for developers to create native games and apps for iOS, Android, Kindle, Windows Phone, Apple TV, Android TV, and Mac and Windows desktops. coronalabs/Sticker-Knight-Platformer Github。
阅读 Goodbye Globals! 来自 Corona 的文档以了解有关全局变量的更多信息。
为了更好地组织您的代码,请使用模块。在 External Modules in Corona.
中阅读更多相关信息
我对 corona sdk 比较陌生,想知道组织代码的最佳方式。我有一些具有一些简单动画的基本精灵,我一直在玩场景以尝试创建主菜单和播放区域。对于设置 sprite 序列和 sprite 选项之类的东西,我应该在另一个模块中执行此操作然后调用它吗?只有当我有多个级别时,这才重要吗?
另外,我应该在 main.lua 中声明什么?只是全局变量?或者这是我可以做所有 sprite 东西的地方?
提前致谢。
查看
Match Three Space RPG Game Template Series - 浏览具有 space RPG 主题的免费三消游戏模板。该项目由 Ponywolf 为 Corona 社区开发。 coronalabs/Match-Three-Space-RPG 在 Github、
Sticker Knight Game Design - Brainstorming Ideas - Michael Wilson from Ponywolf shares insights into the creative game design process his team uses to come up with games like Sticker Knight, Time Golf Squad, and Skipchaser and other great games. Once the planning is finished, the Ponywolf team uses Corona SDK to bring their ideas to life. Corona is a cross platform mobile SDK that makes it easy for developers to create native games and apps for iOS, Android, Kindle, Windows Phone, Apple TV, Android TV, and Mac and Windows desktops. coronalabs/Sticker-Knight-Platformer Github。
阅读 Goodbye Globals! 来自 Corona 的文档以了解有关全局变量的更多信息。
为了更好地组织您的代码,请使用模块。在 External Modules in Corona.
中阅读更多相关信息