O'Reilly logo

Monkey Game Development by Michael Hartlef

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — create the main source file and its folders

As this is the first time, we will work with the resources files and will need to set up the folder of our project in a slightly different manner:

  1. Create a new folder for the game, and give it the same name as your main source file.
  2. Then inside that folder, create another folder with the name of your main source file and the extension .data.
  3. Copy all the resource files from the chapter's cometcrusher.data folder into your .data folder.
  4. Copy the source file of fantomEngine from the chapter's folder into your project folder. Its name is fantomEngine.monkey.
  5. Create a new, empty script file and save it under the name you have chosen.

    Inside the new script add the following lines; by now you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required