Rally-OwlOverview of Rally-Owl GameThis game is based off of Rally-XThe goal of the game is to collect all 10 flags before losing all your livesThe game makes use of a horizontally and vertically scrolling mapThis game implements a mini-mapKey Parts of the ProjectVGA CONTROLLERMainmap-Player-Smoke (3)-Enemy Cars (3)-Flags (10)-Game MapMini-map-Player-Enemy Cars (3)-Flags (10)-uses a function to rescale these the mainmapSoftwareCalculate the scoreSet flag coordinatesSet smoke coordinatesEnemy car movementEnemy AIFuel timerPlayer stutus (lives, direction)VGA ControllerStore all sprites in hereSprites are displayed by pixelUse rectangles to partition the screenPartition the screen in to a main game area and side barLayer Priority(MM) Player(MM) Smoke(MM) Enemy1 --> Enemy2 --> Enemy3(MM)Map(SB) "Score", " Lives", "Fuel", score, lives, fuel(SB) Mini-mapSyncing done at EndOfFieldKey syncing issuesplayer and enemy movementthese are done per pixel and are fast movementsMemory MappingEverything was written as 32bit dataAddress was 5bitsWe used 10 addressesAdresss #Data (32 bits)0 - “00000”Map X (bits 0-15), Map Y (bits 16-31) [Map X,Y pixel shift coordinates]1 - “00001”Player Direction (bits 0-2) [Player’s movement direction]2 - “00010”Fuel Status (bits 0-31) [Fuel Gauge Amount]3 - “00011”Ones Place (bits 0-3), Tens Place (bits 4-7), Hundreds Place (bits 8-11) [Player’s Score]4 - “00100”Flag Col (bits 0-11), Flag Row (bits 12-23), Flag On/Off (bit 24), Flag # (bit 25-28) [Flag data]5 - “00101”X (bits 0-11), Y (bits 12-23), Movement Direction (bits 24-26), Enemy On/Off (bit 27) [Enemy 1 Data]6 - “00110”X (bits 0-11), Y (bits 12-23), Movement Direction (bits 24-26), Enemy On/Off (bit 27) [Enemy 2 Data]7 - “00111”X (bits 0-11), Y (bits 12-23), Movement Direction (bits 24-26), Enemy On/Off (bit 27) [Enemy 3 Data]8 - “01000”Smoke Col (bits 0-11), Smoke Row (bits 12-23), Smoke On/Off (bit 24), Smoke # (bit 25-28) [Smoke data]9 - “01001”Lives (bits 0-31) [Player’s Number of Lives Left]10 - “01010”Game State (bits 0-31) [0 - “Start”, 1 - “End”, 2 - “Play”]SoftwareA master reset Key "R" to restart the game at any timePress S to start the game everytime player dieIf a enemy car run into a smoke, it will stop until the smoke disappear.Each time player uses a smoke, it takes some fuels of its fuel gague.If the player run into the enemy or the run out of fuel, the player dies.Software (con't)Player CarGet the direction from userDetect the wallWhen the car hit the wall, software change the direction to counter clockwise. Enemy CarSoftware decide the direction according to the location of player carverital and horizantal
View Full Document