+ All Categories
Home > Documents > Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide...

Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide...

Date post: 13-Jun-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
16
Slide 1 Build and run the SquareNoids Game Create a new console application Slide 2 Download game source zip file Slide 5 Extract game source to the application folder Slide 7 Open SquareNoids in Code::Blocks Slide 11 Add allegro libraries for linker Slide 12 Set Target x86 (32bit) Slide 14 Build and run game Slide 15 Turn in screen shot Slide 16
Transcript
Page 1: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 1

Build and run the SquareNoids Game

Create a new console application

Slide 2

Download game source zip file

Slide 5

Extract game source to the application folder

Slide 7

Open SquareNoids in Code::Blocks

Slide 11

Add allegro libraries for linker

Slide 12

Set Target x86 (32bit) Slide 14

Build and run game Slide 15

Turn in screen shot Slide 16

Page 2: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 2Open Code::Blocks and create a new console application (C language)

Page 3: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 3

Page 4: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 4

Close and exit this projectThe game source code zip file will be downloaded and unzippedinto this project folder. The main.c file will be overwritten whenthe source code file is unzipped.

Page 5: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 5

Go to the class web site and download the zip archive of theSquareNoidSound source file

Page 6: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 6

Save the file

Page 7: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 7

Once downloaded, clickon the file to open forcontents

Page 8: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 8

Click to 'Extract all files'

Page 9: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 9

Extract the folder contents into the project folder created by Code::Blocks

Page 10: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 10

You are replacing themain.c'Hello World' programcreated by Code::Blockswith the SquareNoids game main.c source file

Page 11: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 11

This is the new contents of theproject folder.

Double click on the SquareNoidsproject file to open Code::Blocks

Page 12: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 12

1 - Right ClickProject BuildOptions

2 – Select linker settings

3 Add libraries

4 Browse to C:\TDM-GCC-64\lib

5 Select all allegro library to include

Page 13: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 13

Select 'No' to make paths absolute instead of relative

Page 14: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

1 - Right ClickProject BuildOptions

2 - Compiler Flags

3 – Check Target x86 (32bit) [-m32]

4 - OK

Slide 14

Page 15: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 15

Build and run the game

Page 16: Slide 1 Build and run the SquareNoids Game Slide 2 Slide 5 Slide …web.eng.fiu.edu/watsonh/eel2880/Project/BuildSquareNoids2017060… · Slide 1 Build and run the SquareNoids Game

Slide 16

Make a screen shot of the game running and turn in as Exercise 2 completionMake sure the Date and Time are available for review


Recommended