MOOC Oral presentation Beginning Game Programming with C# - - PowerPoint PPT Presentation

mooc oral presentation
SMART_READER_LITE
LIVE PREVIEW

MOOC Oral presentation Beginning Game Programming with C# - - PowerPoint PPT Presentation

MOOC Oral presentation Beginning Game Programming with C# Anthony Barbier 1 Plan I - Personal project : introduction II - Personal project : development III - Lets play ! 2 I - Personal project : introduction 3 I - Personal


slide-1
SLIDE 1

MOOC Oral presentation

“ Beginning Game Programming with C# ”

Anthony Barbier

1

slide-2
SLIDE 2

Plan

I - Personal project : introduction II - Personal project : development III - Let’s play !

2

slide-3
SLIDE 3

I - Personal project : introduction

3

slide-4
SLIDE 4

I - Personal project : introduction

→ Pac-Man-like game → Simplified :

  • nly one game played
  • no candies
  • tunnels = dead end
  • ghosts start at corners
  • ghosts not intelligent
  • no animation when Pacman dies

Original Pacman

4

slide-5
SLIDE 5

I - Personal project : introduction

→ Goal : collect all the dots

My Pacman Original Pacman

5

slide-6
SLIDE 6

II - Personal project : development

6

slide-7
SLIDE 7

II - Personal project : development

7

slide-8
SLIDE 8

II - Personal project : development

1 - World map

→ Image downloaded from The Spriters Resource

8

slide-9
SLIDE 9

II - Personal project : development

1 - World map

→ World map = grid → Change candies for dots

9

slide-10
SLIDE 10

II - Personal project : development

1 - World map

→ Script to convert the image to a C# matrix → Almost ok everywhere : → A tile :

10

slide-11
SLIDE 11

II - Personal project : development

1 - World map

→ Trouble accessing a tile

11

slide-12
SLIDE 12

II - Personal project : development

1 - World map

→ Dots removed from the image

12

slide-13
SLIDE 13

II - Personal project : development

2 - Player : Pacman

→ Move Pacman : 4 possible directions

13

slide-14
SLIDE 14

2 - Player : Pacman

→ Sprite animation :

II - Personal project : development

14

slide-15
SLIDE 15

2 - Player : Pacman

→ Score and lives : displayed at the bottom

  • f the window

II - Personal project : development

add margin at the bottom

15

slide-16
SLIDE 16

3 - Ghosts

→ Can't die → Move randomly

II - Personal project : development

16

slide-17
SLIDE 17

4 - Collision between Pacman and ghosts

→ With collision rectangles → On collision : reset positions, and -1 life for the player

II - Personal project : development

After updating positions of Pacman and ghosts (Game1 Update method)

17

slide-18
SLIDE 18

5 - End of the game

→ End when game over or when the player won

II - Personal project : development

Player lost Player won

18

slide-19
SLIDE 19

III - Let’s play !

19