![]() ![]() We can use the in-built rotation of the Actor object by setting the angle property of the car. Our player’s car will be drawn in the centre of this area at the co-ordinates 300,300. If we use 200 pixels for the side panel, that leaves us with a 600×600 play area. To set up our Rally-X homage in Pygame Zero, we can stick with the default screen size of 800×600. In our example, the mini-map is five times smaller than the main map, so it’s easy to work out the calculation to translate large map co‑ordinates to mini-map co-ordinates. The main view of the maze only shows a section of the whole map, and scrolls as the car moves, whereas the mini-map shows the whole size of the map but without any of the maze walls – just dots where the car and flags are (and in the original, the enemy cars). As the car moves around the maze, its position can be seen relative to the flags on the right of the screen. ![]() The aspect of Rally-X that we’ll cover here is the mini-map. The aim of Rally-X is to race a car around a maze, avoiding enemy cars while collecting yellow flags – all before your fuel runs out. This was the first year that developer Namco had exported its games outside Japan thanks to the deal it struck with Midway, an American game distributor. The original Rally-X arcade game blasted onto the market in 1980, at the same time as Pac‑Man and Defender. In Namco’s original arcade game, the red cars chased the player relentlessly around each level. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |