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 will know them pretty well.
Strict #rem Script: cometcrusher.monkey Description: Sample script from chapter #4 of the book "Monkey Game Development Beginners guide" by PacktPub Author: Michael Hartlef #end Import fantomEngine
6. As you...