HP Forums
GAME: Radioactive Wastes - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: GAME: Radioactive Wastes (/thread-4840.html)



GAME: Radioactive Wastes - komame - 09-30-2015 10:03 PM

Hi,

I would like to show you my game for the HP PRIME.
This is not a Sokoban, although at first glance it looks quite similar (here the rules are more complicated).

[attachment=2628][attachment=2630][attachment=12879]

There are the following types of objects (fields):
  • cold waste (blue) - after push it will rolls until it hits a barrier,
  • warm waste (red) - they come from a combination of two or more cold waste and you can not move them,
  • critical mass waste (red and animated) - the cold waste or warm waste can change into critical mass when it touches the critical mass,
  • box - you can push it (it will not roll),
  • wall - you can not push it.

To go to the next level all waste must be a critical mass.

In the game, 30 levels have been placed.

Download:
[attachment=12892]

Version history:
1.00 (2015-09-30):
- initial release
1.01 (2015-10-01):
- bug fixes, small performance optimization
1.02 (2015-10-03) - 110 downloads:
- additional performance optimizations.
1.03 (2023-08-07) - 22 downloads:
- adjustments to work on firmware 2.1.14730
- displaying numerical values in a format independent of system settings
- improving the smoothness of the animation by delaying it instead of dropping frames
- minor graphical fixes
1.04 (2023-11-18) - 8 downloads:
- added touchscreen controls for bulldozer movement (using shortest path method)
- removed the lives limit
- added the option to select a level (from the unlocked ones) on the title screen
- saving the current game state along with the current level layout for later resume (using 'binary asset' resource)
- major performance optimizations - rewritten game logic code
- increased frame rate from 15 to 25 fps
- 3 new levels added
- a smoother level transition effect
1.04.1 (2023-11-20):
- fixed a bug causing the saved board layout not to load when resuming the game


RE: GAME: Radioactive Wastes - eried - 10-02-2015 05:41 PM

I don't see any slowdown in the last version in a real Prime Big Grin


RE: GAME: Radioactive Wastes - komame - 10-03-2015 05:28 AM

I wonder which level you came Smile
Performance problems are most noticeable at levels 13, 16, 17, 19, 23.
I think I found a way to solve this problem, but I need to make a few more tests.


RE: GAME: Radioactive Wastes - komame - 10-03-2015 03:06 PM

The performance issue is almost resolved in version 1.02 and I think I can't do more with this (but the current status is not a problem, some people might not even notice it).


RE: GAME: Radioactive Wastes - Mic - 10-13-2015 07:47 AM

very nice


RE: GAME: Radioactive Wastes - Kevin Ouellet - 10-24-2015 01:51 AM

Great job! I need to try this on a real calculator. Smile


RE: GAME: Radioactive Wastes - mikerovak - 01-23-2016 06:28 PM

Nice little twist on Sokoban, really nice game. Keep up the good work!!


RE: GAME: Radioactive Wastes - Captayne - 02-23-2019 04:57 PM

On my new HP Prime I always receive an error message after pressing Enter:

Invalid Input

How can this be?

Thanks
Andreas


RE: GAME: Radioactive Wastes - komame - 08-07-2023 08:05 PM

(02-23-2019 04:57 PM)Captayne Wrote:  On my new HP Prime I always receive an error message after pressing Enter:

Invalid Input

How can this be?

After the latest update (v1.03), the game will work.
Regards


RE: GAME: Radioactive Wastes - komame - 11-18-2023 03:37 PM

Update available! - v1.04
Many changes! Many improvements!

First and foremost, touchscreen support has been added during the game. Simply touch a field, and the bulldozer will move to the designated location (if it's accessible). There is a bit of a performance issue because calculating the shortest path requires calculations in a matrix, which PPL is a bit weak at, so with longer paths, you may notice a momentary lag in the animation (during calculations). However, you can still control the bulldozer using the arrow keys, where this problem doesn't occur.
The game has been significantly optimized and now runs at 25 frames per second, but it could run much faster (35 fps shouldn't be a problem). However, increasing the frame rate beyond 25 fps wouldn't look good due to overly fast animations, so I've kept it at 25. Regardless of the platform used (G1, G2, VC), the game will run at the same speed.
To save the game state (the current level layout is saved for later continuation, previously it was only the level number), I used a "binary asset" resource, and I think this is the first program on the HP Prime that utilizes this. Thanks to this, the program and the game state are contained in one hpprgm file.

Details in the PDF file attached to the game (first post).


RE: GAME: Radioactive Wastes - komame - 11-20-2023 10:48 AM

Update available! - 1.04.1

I made a small mistake that occurred just before the release of version 1.04.
A bug crept in that caused the saved layout of the board to be first loaded during the game resume, and then overwritten by the original layout of the given level, making it impossible to continue the game, and you had to start the level again. This has been fixed in version 1.04.1.