exercise #3 instructions
TRANSCRIPT
Slide 1
Exercise #3 instructionsDownload & unzip CosmicProtector Slide 2
Create a new Code::Blocks project Slide 3
Remove main.cpp from project Slide 4
Add source files Slide 5
Add include files Slides 7-10
Add liballegro, libogg, libvorbis libraries Slides 11-16
Open cosmic_protector.cpp source file Slide 17
Make the application as a GUI app Slide 18-19
Build the game Slide 20
Copy the data folder Slide 21-22
Run the game Slide 23-24
Create a new Code::Blocks Console C++ project in the target folder withthe exact same name as the unzipped folder
Slide 3
1 Enter the cosmic_protector folder2 Enter the src folder
3 Ctrl-A – select all files in src folder4 Click 'Open' button to add all src files
5 Confirm under Projects Tab
Slide 6
1 Project build options
2 Compiler Search directories tab
3 Add folder
4 in the Cosmic Protector folder
5 Add include folder
...next slide
Slide 9
Add the include folder 'No' as a relative path
Confirm proper addition as a Compiler search pathfor project 'include' files
Slide 10
1 Right click CosmicProtector project again2 Select project build options,3 Select the 'Linker settings' tab4 this time add the libraries for allegro ...see next slide
Slide 11
1 Browse to the C:\TDM-GCC-64\lib folder2 Highlight all the liballegro libraries
3 click 'Open' button
Slide 12
'No' as a relative path for all the libraries
Confirm the correct addition of all the libraries
Slide 13
Same steps to add the libogglibraries
1 Linker settings 'Add' button
2 C:\TDM-GCC-64\lib folder
3 highlight libogg libraries click 'Open' button
4 – No as a relative path
Slide 14
1 Linker settings 'Add' button
2 C:\TDM-GCC-64\lib folder
3 highlight all the libvorbis libraries click 'Open' button
4 – No as a relative path
Same steps to add the libvorbis libraries
Slide 15
Make the application a GUI application
1 right click CosmicProtector project
2 select 'Properties'
Slide 18
Use 'Windows explorer' to copy the data folderfrom the project folderinto the 'bin/Release/ folder with theprogram .exe …. next slide
Slide 21