lucien2 Posted December 18, 2010 Share Posted December 18, 2010 (edited) I think this classic puzzle game is missing in the TI game library Rule(s): Push all the yellow boxes on the pink areas Here are the first two versions: Sokoban.zip SOKO6: 1 built-in level, and that's all SOKO8: 1 built-in level, save the screen, show the menu, go back to game This is far from being finished, still 11K of RAM to fill If you like this game, you can try my iphone version: http://itunes.apple.com/us/app/sokoban-lb-lite/id400319369?mt=8 Thanks to: - kl99, for sending a link to this forum to the TI european mailing list a few weeks ago - Tursi, for his great emulator - Opry99er, for animating this forum, giving me back the cyan fever EDIT: The link to itms:// does not work, trying http:// EDIT2: http works, trying link without text EDIT3: OK, links must have a text string (sorry for my bad english) Edited December 18, 2010 by lucien2 Quote Link to comment Share on other sites More sharing options...
unhuman Posted December 18, 2010 Share Posted December 18, 2010 Well that's an awesome way to introduce yourself to the group! Nominate you for "best first post ever" ! Quote Link to comment Share on other sites More sharing options...
InfernalKeith Posted December 18, 2010 Share Posted December 18, 2010 I concur. This looks fantastic! Can't wait to see more levels. Welcome, and thanks for jumping in with both feet! Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted December 18, 2010 Share Posted December 18, 2010 Very nice. Quote Link to comment Share on other sites More sharing options...
unhuman Posted December 18, 2010 Share Posted December 18, 2010 Just took a look at the listing... Using data statement strings, distinct call char / color lines are less (memory) efficient than some other storage implementations (loops / data). If you want lots of levels, you'll need to alter your architecture, and better sooner than later (as I learned). -H Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted December 19, 2010 Share Posted December 19, 2010 Surprisingly good execution. Very playable - though I've played this exact game on many platforms before, so for now and from me ... Length 1/10 Story 3/10 Replay Value 1/10 Gameplay Mechanics 9/10 Graphics 7/10 Addictiveness 1/10 Program size 10/10 Program readability 8/10 New levels could make this "TI Basic game of the year". Quote Link to comment Share on other sites More sharing options...
lucien2 Posted December 19, 2010 Author Share Posted December 19, 2010 Thank you guys, I didn't expect so much enthusiasm Here is the new version, with 3 levels: SOKO9.zip You can press (N)ext and (P)revious directly from the game. I still have 10K of RAM. Save and restore state not yet implemented. Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted December 19, 2010 Share Posted December 19, 2010 Gotta say, this is freaking awesome !!! Quote Link to comment Share on other sites More sharing options...
unhuman Posted December 19, 2010 Share Posted December 19, 2010 https://secure.wikimedia.org/wikipedia/en/wiki/Sokoban Has lots of cool infos! Quote Link to comment Share on other sites More sharing options...
+retroclouds Posted December 19, 2010 Share Posted December 19, 2010 Have to say, very fun and addictive. Nice graphics considering this is TI-Basic after all. Keep up the good work! Quote Link to comment Share on other sites More sharing options...
humeur Posted December 19, 2010 Share Posted December 19, 2010 (edited) a French company Exelvision had built computers ( exeltel and exl100 )with the microprocessor Texas Tms 7020,7040 and the vdp tms3556, He was a former engineer Texas France ( TIF ). Make an emulator was, and a programmer jester has made a game sokoban for these machines.This game is in assembleur. look this image You'll find all the information about the designer of the emulator http://dcexel.free.fr/ and this video demo with the Tms3556 vdp jean louis Edited December 19, 2010 by humeur Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted December 19, 2010 Share Posted December 19, 2010 (edited) It's interesting to see the EXL100 with a Basic like this ... http://www.youtube.com/watch?v=AwShOF2Se08 http://www.youtube.com/watch?v=ERAw6j2l_I0 Edited December 19, 2010 by sometimes99er Quote Link to comment Share on other sites More sharing options...
humeur Posted December 22, 2010 Share Posted December 22, 2010 It's interesting to see the EXL100 with a Basic like this ... Sokoban is write entirely in assembler Tms 7000. The exelvision basic is similar of cc40 basic. jean louis Quote Link to comment Share on other sites More sharing options...
lucien2 Posted December 28, 2010 Author Share Posted December 28, 2010 Here is the new one: SOKO14.zip New features: - Undo/Redo, limited to 2550 moves - Great animation & sound when the level is finished - 1 new level To do: - Save/Restore state - Load a "User level" file I still have 5k of RAM free, with the 10 strings full of recorded moves. Quote Link to comment Share on other sites More sharing options...
kl99 Posted December 29, 2010 Share Posted December 29, 2010 I have got to check the new version out! Cool to have you here! Quote Link to comment Share on other sites More sharing options...
lucien2 Posted December 29, 2010 Author Share Posted December 29, 2010 Thank you. I think I did not spend as much time as you for the design. I'm always a bit minimalist (or lazy). The main loop is running a bit slower with the recording of the moves, but I think it is still playable. Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted December 30, 2010 Share Posted December 30, 2010 Amazing. Very slick. Awesome functionality. I wonder though why one is not automatically transported to the next level. Best thing I've seen for TI Basic in years ! Quote Link to comment Share on other sites More sharing options...
unhuman Posted December 30, 2010 Share Posted December 30, 2010 (edited) Very nice undo function! It's so fast. Good work! A restart level button might be nice too... Edited December 30, 2010 by unhuman Quote Link to comment Share on other sites More sharing options...
lucien2 Posted January 4, 2011 Author Share Posted January 4, 2011 There is something I really don't understand. In these two files, the main loop between "CALL JOYST" (line 750) and "IF S1<=10 THEN 750" (line 1230) is exactly the same. But one is running almost twice faster than the other... Slow-Fast.zip Quote Link to comment Share on other sites More sharing options...
unhuman Posted January 5, 2011 Share Posted January 5, 2011 Do you have the source available in an ASCII / text file? I'd be happy to dig in and look - but using the command line editor is way harder to read code in. -Howie Quote Link to comment Share on other sites More sharing options...
lucien2 Posted January 5, 2011 Author Share Posted January 5, 2011 Do you have the source available in an ASCII / text file? I'd be happy to dig in and look - but using the command line editor is way harder to read code in. -Howie Thank you. Fast-Slow-Txt.zip I always use Classic99 in overdrive mode, so I didn't remark when it became slower. The only difference I see is the code size. I tried to comment the string concatenation on line 1210, but it makes no difference. Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted January 5, 2011 Share Posted January 5, 2011 I tried manipulating only numeric variables in a small and very large program. TIB only. No difference. Then I added string manipulation. The large program became almost 10 percent slower. I guess the large program leaves about 1K of free memory. The difference between the small and large programs were data statements only (I was lazy). Nothing too conclusive about this, other than string manipulation might be the thing that kicks in the garbage collector, and this of course kicks in more often when memory is low. Quote Link to comment Share on other sites More sharing options...
lucien2 Posted January 5, 2011 Author Share Posted January 5, 2011 I tried manipulating only numeric variables in a small and very large program. TIB only. No difference. Then I added string manipulation. The large program became almost 10 percent slower. I guess the large program leaves about 1K of free memory. The difference between the small and large programs were data statements only (I was lazy). Nothing too conclusive about this, other than string manipulation might be the thing that kicks in the garbage collector, and this of course kicks in more often when memory is low. I removed all string manipulations and gosubs, no difference. With the trick "746 A=A+8" "GOSUB 746", we see that the memory left is 3736 and 8184 when we press a key (without DSRs). Great, all this programming effort for a game unplayable at real speed... Next project: do it in assembly. Slow-Fast 2.zip Quote Link to comment Share on other sites More sharing options...
sometimes99er Posted January 5, 2011 Share Posted January 5, 2011 (edited) Trick ? Are you doing GOSUB without RETURN ? Unfortunately I haven't got time to analyze the problem, but I guess it would be possible to narrow it down - one way or another. I haven't settled for any particular kind of BoCC game entry, and as time flies, I'm beginning to doubt I will seriously put all the time into it. The idea was to have a small engine do something, probably something puzzle oriented since the word "action" mostly is out of the equation, - and then fill the memory with "candy" (nice graphics, sounds and maybe some music). - Sure would be nice to know what slows TI Basic ... Edited January 5, 2011 by sometimes99er Quote Link to comment Share on other sites More sharing options...
lucien2 Posted January 5, 2011 Author Share Posted January 5, 2011 Here is the next test. SLOW5 - removed all the code from SLOW2 except the main loop, filled it with DATA SLOW6 - removed all the code from SLOW2 except the main loop, filled it with CALL CHAR SLOW2 is still slower than the others. Really strange. I tried to run it under XB, same problem. Slow-Fast 3.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.