Title: BombMan
1BombMan
2start
Initialize DDSurfaces needed in this application
StartNewGame
true
bExecuting
Create and initialize DirectDraw object
false
RenderFrame
Create DirectDrawClipper object
DoEvents
Create Primary Surface
Create and define BackBuffer Surface
end
3Start new game
InitStage
InitNewPlayer
Allocation object position
other
position
face
Undestructible object
Number of bomb
Move speed
enemy
Destructible Object
Bomb (treasure)
Door
Shoe (treasure)
4Initsurfaces
DirectDrawSurface7
CreateSurfaceFromFile
ddsGameObj
Obstacle.bmp
ddsGameBkg
ddsEnemy
ddsExplode
ddsBomb
ddsBombman
ddsShoe
ddsPower
GameBkg3.bmp
Explode.bmp
Bombman.bmp
power.bmp
dog.bmp
Bomb.bmp
shoe.bmp
5tAnimator_Timer
AnimateBomb
AnimateObstacle
AnimatePlayer
bombing
Show the current bomb diagram according to their
state
blow up
enemy
player
Show the current obstacle object
diagram According to its state
Test if player and enemy are died and set their
state to be dying
Clear things around the bomb except undestructibl
e object
Set obstacle object to disappear
6RenderFrame
ddsGameObj
ddsGameBkg
ddsExplode
ddsBombman
ddsPower
ddsEnemy
ddsBomb
ddsShoe
DDSBack(DirectDrawSurface7)
DDSPrimary(DirectDrawSurface7)