Sokoban game for HP Prime - 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: Sokoban game for HP Prime (/thread-319.html) Pages: 1 2 |
Sokoban game for HP Prime - ArielPalazzesi - 01-04-2014 10:58 AM 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]) RE: Sokoban game for HP Prime - ArielPalazzesi - 01-04-2014 07:35 PM 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. RE: Sokoban game for HP Prime - Kevin Ouellet - 01-04-2014 09:11 PM 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. RE: Sokoban game for HP Prime - Les_Koller - 01-04-2014 10:39 PM Going to try it now. Looks good! And, your english is VERY readable, much better than my spanish! RE: Sokoban game for HP Prime - patrice - 01-05-2014 09:11 AM 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 ? RE: Sokoban game for HP Prime - patrice - 01-05-2014 11:01 AM would be a nice idea to allow cursor keys instead of mouse. Mouse have timeout that prevent quick moves. It is a pain. RE: Sokoban game for HP Prime - ArielPalazzesi - 01-05-2014 12:05 PM (01-05-2014 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 RE: Sokoban game for HP Prime - ArielPalazzesi - 01-05-2014 12:36 PM Yep....one cube was missing. Fixed! (Beta 1.1 attached) PS: Working in more levels/options RE: Sokoban game for HP Prime - patrice - 01-05-2014 03:29 PM Here is a little rewrite of your code for Moves and Pushes in the 4 directions. Code: local DX, DY; RE: Sokoban game for HP Prime - ArielPalazzesi - 01-05-2014 03:31 PM (01-05-2014 03:29 PM)patrice Wrote: Here is a little rewrite of your code for Moves and Pushes in the 4 directions. WOW!!! Thanks! RE: Sokoban game for HP Prime - ArielPalazzesi - 01-07-2014 11:11 AM 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" Sokoban game for HP Prime - Dante - 01-09-2014 03:36 PM 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] RE: Sokoban game for HP Prime - Tugdual - 01-10-2014 09:59 PM I love Sokoban and it was a very good idea to port it on HPP and nice implementation. Thanks. RE: Sokoban game for HP Prime - patrice - 01-14-2014 11:25 AM 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 RE: Sokoban game for HP Prime - ArielPalazzesi - 01-14-2014 01:36 PM (01-14-2014 11:25 AM)patrice Wrote: Bug report. Thanks!!! Checking.... RE: Sokoban game for HP Prime - ArielPalazzesi - 01-14-2014 02:14 PM Solved. Thanks a lot! Working in final version 1.0. Release date: Feb/2014, after vacation time RE: Sokoban game for HP Prime - patrice - 01-14-2014 05:42 PM 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 RE: Sokoban game for HP Prime - patrice - 01-15-2014 08:37 AM Board 1-2 is impossible RE: Sokoban game for HP Prime - ArielPalazzesi - 01-15-2014 01:40 PM Fixed! Thanks a lot PS: Attach the original level, from Sinclair ZX Spectrum Sokoban: RE: Sokoban game for HP Prime - patrice - 01-27-2014 11:21 PM Hi Ariel, Have a look at the library entry "1 Utility for Games", you should be interested. |