30 likes | 125 Views
Open-Source AS3 Game Engine Simply create quality game. FlashGameMaker. Tutorial #1 – HelloWorld. AngelStreet. http://flashgamemakeras3.blogspot.com. FGM. Tutorial #1 – HelloWorld. Go to the folder classesscript of the project root Open the class MyGame.as
E N D
Open-Source AS3 Game Engine Simply create quality game FlashGameMaker Tutorial #1 – HelloWorld AngelStreet http://flashgamemakeras3.blogspot.com
FGM Tutorial #1 – HelloWorld • Go to the folderclasses\script of the projectroot • Open the class MyGame.as • MyGamelaunch the script HelloWorld.as • 1. package script{ • 2. import script.tutorial.*; • 3. /** • 4. * MyGame Script • 5. */ • 6. publicclassMyGame{ • 7. • 8. publicfunctionMyGame() { • 9. // ----- Start your game here ---------------- • 10. //-------------------------------------------------- • 11. newHelloWorld(); • 12. } • 13. } • 14. } • AngelStreet
FGM Tutorial #1 – HelloWorld Class • This class simply trace « HelloWorld » on the Output • 1.packagescript.tutorial{ • 2. /** • 3.* Hello World • 4.*/ • 5. publicclassHelloWorld{ • 6. • 7. publicfunctionHelloWorld() { • 8. trace("HelloWorld"); • 9. } • 10. } • 11. } • AngelStreet