Sokoban game for HP Prime
|
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)