Sokoban game for HP Prime

01042014, 10:58 AM
(This post was last modified: 01152014 01:40 PM by ArielPalazzesi.)
Post: #1




Sokoban game for HP Prime
Sokoban game for HP Prime
Hello! I'm still learning a little bit about the commands and possibilities of this excellent machine. I started working on developing a version of the game Sokoban. Using tiles of 16x16 bits and I'm using the touch screen to control the movements of "pusher". I've already finished programming the graphics and movement routines. I need to optimize the compression / decompression of maps and details of the game (score, help, etc). I made one (the first one!) video of the game: The video shows how the game works. It is not a particular level, but a sandbox created just to do some testing. I try finish in a few days. Regards PD: Sorry for my bad English language management. My native language is Spanish, and it shows  EDIT 14/01/14: Download latest release: ([url=http://www.hpmuseum.org/forum/attachment.php?aid=170[/url]) 

01042014, 07:35 PM
Post: #2




RE: Sokoban game for HP Prime
Hello!
The "Beta 1" version is ready!. Only has 10 levels, and keeps track of the number of moves made and the amount of pushes made. They are the first ten levels of the DOS version about 30 years. ... They are difficult to solve, but not impossible. Enjoy! The pusher moves touching the edges of the screen. I did not use keys courses to preserve the "health" of the keyboard. Soon more levels. T.I.A., Ariel. PS: Remember.....is a "Beta", there are features that have not yet been implemented. 

01042014, 09:11 PM
Post: #3




RE: Sokoban game for HP Prime
This will definitively go in the HP Prime Tribute video with the other games and programs
I will also give this a try for sure. Dream of Omnimaga https://djomnimaga.music2000.com 

01042014, 10:39 PM
Post: #4




RE: Sokoban game for HP Prime
Going to try it now. Looks good! And, your english is VERY readable, much better than my spanish!
I'm a math teacher. Of course I have problems. 

01052014, 09:11 AM
(This post was last modified: 01052014 09:20 AM by patrice.)
Post: #5




RE: Sokoban game for HP Prime
About compression, you can use a simple encoding as commonly used in the game of life
Here is a decoding routine Code: RLEMap (Rows, Cols,RLE) Code: "$$$5b5w$5bw3bw$5bwc2bw$3b3w2bc2w$3bw2bcbcbw$b3wbwb2wbw3b7w$bw3bwb2wb5w2b2dw$bwbc6bs6b2dw$b5wb3wbwb2w2b2dw$6bw5b9w$5b7w!" $ : new line ! : End (optional) b : Background (your 0) w : Wall (your1) c : Cube (your 3) s : Sokoban (your 4) and numeric is the repeat factor for next letter Routine and level untested, but you get the idea By the way, are you sure there is a Cube missing in level 1 ? Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01052014, 11:01 AM
Post: #6




RE: Sokoban game for HP Prime
would be a nice idea to allow cursor keys instead of mouse.
Mouse have timeout that prevent quick moves. It is a pain. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01052014, 12:05 PM
Post: #7




RE: Sokoban game for HP Prime
(01052014 11:01 AM)patrice Wrote: would be a nice idea to allow cursor keys instead of mouse. Thanks Patrice! I will analyze the compression routines, and provide an option to play with the keyboard or touch screen. Revisiting the cube at level 1 

01052014, 12:36 PM
(This post was last modified: 01052014 03:08 PM by ArielPalazzesi.)
Post: #8




RE: Sokoban game for HP Prime
Yep....one cube was missing.
Fixed! (Beta 1.1 attached) PS: Working in more levels/options 

01052014, 03:29 PM
Post: #9




RE: Sokoban game for HP Prime
Here is a little rewrite of your code for Moves and Pushes in the 4 directions.
Code: local DX, DY; Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01052014, 03:31 PM
Post: #10




RE: Sokoban game for HP Prime  
01072014, 11:11 AM
(This post was last modified: 01152014 01:41 PM by ArielPalazzesi.)
Post: #11




RE: Sokoban game for HP Prime
Versión Beta 1.03 ready.
* 40 levels * Help screen * Abort game * Exit screen * Etc. Download Link: Sokoban for HP Prime (Beta 1.03) (some problems fixed, Beta 1.031) Demo video: Is the last release for 15 or 20 days (vacation time!) PS: The "control with keys" opción don't work. When I return from my vacation will finish characteristic of this program, adding 60 more levels, and change in name to "version 1.0" 

01092014, 03:36 PM
Post: #12




Sokoban game for HP Prime
That's one of my favorite games, it makes you think a lot, thank you for sharing your game with us Ariel. can't wait to get my hands dirty with version 1.0![/size][/size]


01102014, 09:59 PM
Post: #13




RE: Sokoban game for HP Prime
I love Sokoban and it was a very good idea to port it on HPP and nice implementation.
Thanks. 

01142014, 11:25 AM
Post: #14




RE: Sokoban game for HP Prime
Bug report.
You need to add a test for when you hit a wall. Because if the wall is on first/last row/col, you can't test for pushing because second cell is outside of matrix. go to Board 4 7 and hit the wall on top Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01142014, 01:36 PM
Post: #15




RE: Sokoban game for HP Prime  
01142014, 02:14 PM
Post: #16




RE: Sokoban game for HP Prime
Solved. Thanks a lot!
Working in final version 1.0. Release date: Feb/2014, after vacation time 

01142014, 05:42 PM
Post: #17




RE: Sokoban game for HP Prime
Another problem.
When the program is running, the calc never slow down while waiting for an event (key or tap) Something should be changed in the WAIT function. a WAIT(0) may do the trick Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01152014, 08:37 AM
Post: #18




RE: Sokoban game for HP Prime
Board 12 is impossible
Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

01152014, 01:40 PM
(This post was last modified: 01152014 01:52 PM by ArielPalazzesi.)
Post: #19




RE: Sokoban game for HP Prime
Fixed! Thanks a lot
PS: Attach the original level, from Sinclair ZX Spectrum Sokoban: 

01272014, 11:21 PM
Post: #20




RE: Sokoban game for HP Prime
Hi Ariel,
Have a look at the library entry "1 Utility for Games", you should be interested. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)