Sokoban game for HP Prime
|
01-27-2014, 11:28 PM
Post: #21
|
|||
|
|||
RE: Sokoban game for HP Prime
Very, very, very nice!!!!!!
In a few days i return with a long reply |
|||
01-28-2014, 06:07 AM
Post: #22
|
|||
|
|||
RE: Sokoban game for HP Prime
Glad to see you again
-Dream of Omnimaga https://dreamofomnimaga.page |
|||
02-24-2014, 04:05 PM
Post: #23
|
|||
|
|||
RE: Sokoban game for HP Prime
Hi Ariel,
Hope exams are doing well. Tell me if you have problems compressing levels, I can help. I find the program more agreeable to play with keyboard rather than with touch screen. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
02-24-2014, 05:05 PM
Post: #24
|
|||
|
|||
RE: Sokoban game for HP Prime
Hello Patrice!
I'm still on it. I must pass some more. As to Sokoban, I can not get in this time. I have several projects "abandoned", at least for a couple of months. Please feel free to change anything you want, and also put your name in the "credits" Thank you very much! |
|||
03-10-2014, 05:15 AM
Post: #25
|
|||
|
|||
RE: Sokoban game for HP Prime
Hi Ariel,
Here are my changes: Levels are compressed with RLE: saves 40K for 40 levels removed duplicated code for moves: save about 20K added keyboard moves Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
03-10-2014, 10:44 AM
Post: #26
|
|||
|
|||
RE: Sokoban game for HP Prime
Fine!
Thanks for taking the work to improve the game. In the afternoon I'll try. If I remember correctly, the code that you just passed me to move the "pusher" failed in some situations. I do not comment at the time, but I remember not included in my code for that. I'll play and you commented. Thank you again! |
|||
03-10-2014, 11:50 AM
(This post was last modified: 03-10-2014 11:59 AM by patrice.)
Post: #27
|
|||
|
|||
RE: Sokoban game for HP Prime
(03-10-2014 10:44 AM)ArielPalazzesi Wrote: If I remember correctly, the code that you just passed me to move the "pusher" failed in some situations. I do not comment at the time, but I remember not included in my code for that.If I remember, the problem was in my event handling, this should be OK now. Edit: by the way the 3 functions at the end are to RLE encode the levels. the last one is EXPORTed. Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
03-10-2014, 06:24 PM
Post: #28
|
|||
|
|||
RE: Sokoban game for HP Prime
I have 1 more change to allow Esc to abort the game.
Code: IF TYPE(Ky) == 0 THEN Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
03-14-2014, 11:56 PM
(This post was last modified: 03-14-2014 11:58 PM by patrice.)
Post: #29
|
|||
|
|||
RE: Sokoban game for HP Prime
Hi Ariel,
After the last review of your code, I have an advice for you. When programming big pieces of code it is usually easier to put only one functionality in a subroutine, and only the top level routines put together every thing. Example in loadsubnivel(), it is called only once by the top level routine. Making it only loading the level and nothing else make it easier to remember and to change. drawscreen() have some side effects that complicate changes. Code: IF GAMEOVER == 0 THEN Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
03-15-2014, 01:29 PM
Post: #30
|
|||
|
|||
RE: Sokoban game for HP Prime
Hello!
Thank you very much for the council! All these "tips" are useful for programming me and help me to program better. I'm (obviously) an amateur, and thanks to people eager to help (like you) is that I learn a little more each day. Excellent job! Greetings. |
|||
05-30-2014, 09:28 PM
Post: #31
|
|||
|
|||
RE: Sokoban game for HP Prime
Update for Rev 6030
This version is only taking advantage of new features of rev 6030 the pragma ensure that the program will compile. your number format setting will not mess the display. the .prime file is the source code in text Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein |
|||
03-04-2024, 06:52 PM
Post: #32
|
|||
|
|||
RE: Sokoban game for HP Prime
Sorry to bump such an old thread, but I found an error in the third level.
First of all; I love Sokoban and this version for the HP Prime. I have enjoyed a lot of time pushes the boxes around and solving the puzzles! After trying to solve level 3 (beginner) I was almost driven to madness, so I put it into a Sokoban solver and it couldn't be solved with A* or Dijkstra algorithm. The problematic game is this: Code: + + + + + + + + + + + + + + + + *: player -: empty @: box X: goal If someone knows the solution, please help me out ;-) And for the author; maybe you can resolve the issue so that the level can be solved. Ofcourse only if you still support the game. / Jonathan HP 15C CE, HP 35S, HP Prime G2, Casio Graph 90+E, TI Nspire CX, TI 83, TI 84+, TI 84+ CE |
|||
03-04-2024, 11:01 PM
Post: #33
|
|||
|
|||
RE: Sokoban game for HP Prime
As it has been 2.5 years since Patrice has logged-in, suggest you send him an email or PM to ask if he's still involved, otherwise it might be a very long wait before you get a reply.
--Bob Prosperi |
|||
03-05-2024, 06:17 PM
Post: #34
|
|||
|
|||
RE: Sokoban game for HP Prime
(03-04-2024 11:01 PM)rprosperi Wrote: As it has been 2.5 years since Patrice has logged-in, suggest you send him an email or PM to ask if he's still involved, otherwise it might be a very long wait before you get a reply. You're definitely right about that. I should have thought a bit longer about it =) / Jonathan HP 15C CE, HP 35S, HP Prime G2, Casio Graph 90+E, TI Nspire CX, TI 83, TI 84+, TI 84+ CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)