Hi!
"self-playing ATTRACT mode" : Yes, I understand your idea better. it takes a lot of time and I would prefer to work on another game project. I hope you will not be too disappointed.
Here is an updated version of the game which takes into account the following remarks:
- Optimize the movement of the character to prevent him from blocking too easily in narrow passages :
To put it simply, the 8 by 8 pixel character moves from 2 to 2, x or y. The modulo of its coordinates therefore takes the values 0, 2, 4 or 6. When it is equal to 4, the character is placed exactly between two boxes (a wall and a door for example). I leave it blocked in this case to avoid the unsightly shift of 4 pixels in one direction or the other. On the other hand, when the modulo is at 2 or 6, I automatically shift by 2 remaining pixels to readjust the character in the grid when he meets a narrow passage or a door to open.
- Display a game status bar:
To avoid a display that is sometimes completely offset, I opted to pause the game and display a popup over when we press the button. We have the display of the player's inventory, at this time of the game, the score and the number of emeralds remaining to collect. To exit the popup, press the keys 1 (quit the game in progress - we are stuck for example -) or 2 (resume the game). Effectively, the CLEAR key did not work. Sorry.
- Add a score to the game:
A score is updated and display regularly. A bonus is awarded at the end of each successful level based on the number of keys picked up and unused and according to the time it took the player to complete the level. We start the next level with 0 keys (as it was already the case but they didn't bring anything at all). I preferred to add this time bonus rather than adding a point to each blue rubble removed.
- Addition of a 4th level of game with a slightly different design.
--------
Add a BGM music: it would be cool to resume the beginning of the music of the real Boulder Dash (see PJ in example) but I don't know anything about music theory.
Thanks ?
emerdig.rom