The Maze Escapist Version 2
In the second version, I expanded the current libraries to include a background screen. But the main improvement was the inclusion of state screens. This game had multiple screens namely, Start, Game, Lose and Win. This provided a better user interface and smooth gaming experience. The main problem with this approach was the extremely slow and lagging screen because the program was very bulky for the 16.78MHz processor. Also, the data transfer was slow from the memory to the screen since CPU would interrupt the transfer every time the data transfer cycle occurred. Due to this, it was initially very difficult to see anything on the screen. To make it faster I used a feature taught to us in our class called Direct Memory Access (DMA). DMA allowed the transfer to happen directly without the CPU interrupting the data transfer cycle every time. This transfer is extremely fast and the CPU is halted until this transfer is complete. Even after using DMA the game was lagging but it was significantly better since the user could see everything properly.
|
|
You can download the zipped version of the code and the game here:
![]()
|
![]()
|