项目作者: Stencyl

项目描述 :
Create Flash, HTML5, iOS, Android, and desktop games with no code with Stencyl. This is the source to Stencyl's Haxe-based engine.
高级语言: Haxe
项目地址: git://github.com/Stencyl/stencyl-engine.git
创建时间: 2013-05-05T07:50:18Z
项目社区:https://github.com/Stencyl/stencyl-engine

开源协议:

下载


Stencyl

http://www.stencyl.com

Create Flash, HTML5, iOS, Android, Mac, Windows and Linux games with no code with Stencyl. This is the source to Stencyl’s Haxe-based game engine.

Requirements

  • Haxe 3.2.0
  • Stencyl 3.0
    Stencyl’s engine is written in Haxe, a language similar to ActionScript 3. You can edit Haxe directly from any text editor, or you can use something more complete such as FlashDevelop, Sublime Text, MonoDevelop or Eclipse.

Reporting Issues

Report all bugs and enhancement requests on our Issue Tracker.

Developing alongside Stencyl

To make changes to the Stencyl engine, simply edit the files in your Stencyl installation directory under plaf/haxe/lib/stencyl/1,00. You don’t have to restart Stencyl for the changes to take effect.

If you have the engine files elsewhere (a fork of this repository, for example), you can direct haxelib to use that alternate copy (including when compiling from within Stencyl). Use the command haxelib dev stencyl [alternate stencyl-engine path] to set this, and later haxelib dev stencyl to revert to the Stencyl-installed engine. This could be useful to permit use of an engine version that’s under active development without altering the original, installed copy.

Developing Standalone

For those who desire a more traditional workflow, the engine can be run standalone, outside of Stencyl.

To do this, run any of the following commands from within the checked out directory to run the engine by itself using a minimal test project. You do not need to run the build-stencyl script unless you wish to run a game within Stencyl.

  1. haxelib run nme test TestProject.nmml flash -debug
  2. haxelib run nme test TestProject.nmml ios -simulator
  3. haxelib run nme test TestProject.nmml ios
  4. haxelib run nme test TestProject.nmml android
  5. haxelib run nme test TestProject.nmml windows
  6. haxelib run nme test TestProject.nmml mac

To edit the data for the standalone test game, peek inside of Assets (contains the resource definitions, graphics, sounds) inside of Scripts.

Extensions

Extensions expose native mobile functionality to the Stencyl engine. Read this page for details.

Debugging

If you’re running the engine standalone, viewing the engine’s logs involves external apps.

  • For Flash, use Vizzy
  • For Windows, use XXXX?
  • For Mac, use OS X’s Console app.
  • For iOS, use OS X’s Console app. Also peek at the contents of ios-log.text.
  • For Android, use DDMS (Android Device Monitor).

Code Structure

Read this Wiki page

Contributing

Credits

Stencyl’s game engine is proudly built on top of OpenFL and Haxe. We’re a proud sponsor of the Haxe Foundation.

Contributors

  • Rob Alvarez
  • Mike Marve
  • Dario Seidl
  • Justin Espedal
  • Nathaniel Mitchell
  • Greg Sicard
  • Alexandre Vieira
  • Mike Morace
  • Simone Conia
  • Jason Irby
  • Robin Schaafsma
  • Chris Finn

MIT License

  1. Copyright (c) 2013 Stencyl, LLC
  2. Permission is hereby granted, free of charge, to any person obtaining a copy
  3. of this software and associated documentation files (the "Software"), to deal
  4. in the Software without restriction, including without limitation the rights
  5. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  6. copies of the Software, and to permit persons to whom the Software is
  7. furnished to do so, subject to the following conditions:
  8. The above copyright notice and this permission notice shall be included in
  9. all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  14. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  15. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  16. THE SOFTWARE.