Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 2 - Building a Monogame Windows Project

Similar presentations


Presentation on theme: "Lecture 2 - Building a Monogame Windows Project"— Presentation transcript:

1 Lecture 2 - Building a Monogame Windows Project
Monogame Tutorials Lecture 2 - Building a Monogame Windows Project

2 MonoGame Content Content is any asset your game uses: background scenes, sprites, sounds, sound effects, text fonts, etc... 1. double-click Content.mgcb 2. drag desired content into content pane 3. Click Save 4. Close Monogame Pipeline

3 Class Level Variables minY maxY minX maxX

4 Initialize Method minY facePosition maxY minX maxX

5 LoadContent Method face RGB = 255,0,255 magenta set as
transparency color background

6 Update Method minY maxY minX maxX

7 Draw Method

8 Running "Game"

9 Adding Play Sounds and SoundEffects to Monogame
Since the thewind is being "looped" it is started in the LoadContent( ) function. For wav files to function correctly you will need to install DirectX on the target computer.

10 Instances of boing1 and boing2 are played each time the face hits the display border.

11


Download ppt "Lecture 2 - Building a Monogame Windows Project"

Similar presentations


Ads by Google