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 — creating the basic file structure

Ok, set up the development folder with the following steps:

  1. Create a new project folder with a name you choose, such as At the docks, for example.
  2. Load the baseScript.monkey file, which holds the basic code structure for our game.
  3. Change the information at the top of the script to your data, and save it under a name you choose, inside the new folder you created before.
  4. Create a new yourGameName.data folder inside the project folder.
  5. Copy the resources from the atthedocks.data folder inside your own data folder.
  6. Now, build and run an HTML5 project.

What just happened?

You have set up the directory and file structure for the game. And you have built an HTML5 project that will help you further on. But wait, ...

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