I’ve got my Naval Battle game to a playable state.
Here’s the screen from a little earlier in development. I developed on the Pokitto hardware, so I took the image with a camera.
How to play:
Use the yellow block cursor to place the ships on the grid on the right.
Pressing A will select the ship that is closest to the cursor.
Use the direction arrows to move to a location on the grid.
Press A again to release the ship.
Press B to rotate the ship between horizontal and vertical orientations.
Once all ships are in the grid, select the box next to “Done” to start playing.
When playing, select a point in the left grid and press A to fire a missile.
The computer will alternate fire, making somewhat sophisticated choices.
Once all the ship grid points on one side are hit, a winner is declared.
Here is the POP file (updated 20180105) nbattle.pop (166.2 KB)
Here is the binary (updated 20180105) nbattle.bin (40.9 KB)
It’s a simple game, but a fun way to get familiar with programming the Pokitto. I’m planning on continuing to work on the button handling, graphics, sound and AI.
Questions and comments are very welcome.
Edit: Updated with reasonable AI
Edit: Updated to new library, graphics, AI
Edit: Added POP file