+nanochess Posted November 10, 2016 Share Posted November 10, 2016 Hi everyone.Today I was kind of bored and tired trying to implement an algorithm for a game that I'm doing by request.Casually I ended in the 2048 game page, and I passed half an hour playing it.The objective of the game is to move all numbers in any of 4 directions (like falling), and the numbers of same value collapse, till you get the magical 2048 number. It's not so easy.I thought it would make a very interesting Intellivision game and I started coding it, it took me 4 hours. And here is it after some polishing, including adding some music by First Spear Edit: BTW sources included, maybe tomorrow I'll add now including a pair of sound effects I've forgot. Edit 2: Now with 4096 and 8192 modes, press 5 in title screen Edit 3: Now with the extra modes by Kiwi and Tarzilla, code clean and re-indented to my style and also with my original "classic" mode.(click to animate) https://www.youtube.com/watch?v=Q4mWufg-_Kg 2048.zip 2048_v2.zip 2048_v3.zip 2048_v5.zip 20 1 Quote Link to comment Share on other sites More sharing options...
atari5200dude82 Posted November 10, 2016 Share Posted November 10, 2016 Very cool . Looks interesting 1 Quote Link to comment Share on other sites More sharing options...
+fdr4prez Posted November 10, 2016 Share Posted November 10, 2016 This is a game i play a lot of on my phone. Now I can play it old skool style Thanks! 1 Quote Link to comment Share on other sites More sharing options...
mthompson Posted November 10, 2016 Share Posted November 10, 2016 Neat! I like puzzle games, and this one is simple but challenging one. Thanks for completing and posting it! 1 Quote Link to comment Share on other sites More sharing options...
Byte Knight Posted November 10, 2016 Share Posted November 10, 2016 Amazing what you can program in 4 hours! 1 Quote Link to comment Share on other sites More sharing options...
+nanochess Posted November 11, 2016 Author Share Posted November 11, 2016 Added version 2 with sound effects and a gameplay video. (check first post) Quote Link to comment Share on other sites More sharing options...
Eric7100 Posted November 11, 2016 Share Posted November 11, 2016 When does the CIB version come out? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted November 11, 2016 Author Share Posted November 11, 2016 When does the CIB version come out? As soon as Tarzilla and freewheel start IntyBASIC showcase vol.2 2 Quote Link to comment Share on other sites More sharing options...
Byte Knight Posted November 11, 2016 Share Posted November 11, 2016 Yeah baby! 3 Quote Link to comment Share on other sites More sharing options...
+nanochess Posted November 11, 2016 Author Share Posted November 11, 2016 Yeah baby! IMG_2256.JPG I'm astonished! Quote Link to comment Share on other sites More sharing options...
+5-11under Posted November 11, 2016 Share Posted November 11, 2016 Is 2048 the end of the game, then? You should be able to keep playing. I know I've got the 4096 before, so I'd add support up to 8192 at least (realizing 16384 and higher won't fit as easily). Quote Link to comment Share on other sites More sharing options...
mthompson Posted November 11, 2016 Share Posted November 11, 2016 How does the Score work? Does a lower score indicate fewer moves, or is a higher number better? Quote Link to comment Share on other sites More sharing options...
+nanochess Posted November 11, 2016 Author Share Posted November 11, 2016 Is 2048 the end of the game, then? You should be able to keep playing. I know I've got the 4096 before, so I'd add support up to 8192 at least (realizing 16384 and higher won't fit as easily). Yep, 2048 is the end of the game. Hmmmm, it could be a startup option. How does the Score work? Does a lower score indicate fewer moves, or is a higher number better? Yep, a lower score indicates fewer moves because each time you merge a number, the resulting number is added to your score. Anyway not a "clear" better score as the number seed in board is pseudo-random. Quote Link to comment Share on other sites More sharing options...
+Tarzilla Posted November 11, 2016 Share Posted November 11, 2016 As soon as Tarzilla and freewheel start IntyBASIC showcase vol.2 I'm still recovering from Volume 1 Quote Link to comment Share on other sites More sharing options...
Byte Knight Posted November 11, 2016 Share Posted November 11, 2016 Is 2048 the end of the game, then? You should be able to keep playing. I know I've got the 4096 before, so I'd add support up to 8192 at least (realizing 16384 and higher won't fit as easily). Having the option of being able to play to 2048, 4096, or 8192 would be cool. Quote Link to comment Share on other sites More sharing options...
+fdr4prez Posted November 11, 2016 Share Posted November 11, 2016 Unfortunately I removed the game phone, but I also had a super high number. Maybe I'll reinstall it and see if I can repeat it. Quote Link to comment Share on other sites More sharing options...
+cmart604 Posted November 11, 2016 Share Posted November 11, 2016 Is there a snow level? 1 Quote Link to comment Share on other sites More sharing options...
Kiwi Posted November 11, 2016 Share Posted November 11, 2016 Is there a snow level? Isn't that rev's line? 3 Quote Link to comment Share on other sites More sharing options...
Rev Posted November 11, 2016 Share Posted November 11, 2016 I'm still recovering from Volume 1 Me too. Ha Quote Link to comment Share on other sites More sharing options...
Rev Posted November 11, 2016 Share Posted November 11, 2016 Is there a snow level? Plagiarism! 3 Quote Link to comment Share on other sites More sharing options...
Rev Posted November 11, 2016 Share Posted November 11, 2016 Isn't that rev's line? Hey. That line works! I've talked groovybee to adding snow levels in every game he does. Hahaha. 1 Quote Link to comment Share on other sites More sharing options...
+nanochess Posted November 11, 2016 Author Share Posted November 11, 2016 Now with 4096 and 8192 mode press 5 in title screen (check first post) 2 Quote Link to comment Share on other sites More sharing options...
Kiwi Posted November 11, 2016 Share Posted November 11, 2016 (edited) OOoo... Source code. Maybe rev will get his snow level he wanted. *rub hands* Muhahahahaha *thunderclaps* Edited November 11, 2016 by Kiwi 1 Quote Link to comment Share on other sites More sharing options...
+fdr4prez Posted November 11, 2016 Share Posted November 11, 2016 Many of the games like this have a selection of different board sizes, such as 3x3, 4x4, 5x5, etc, and a "take back" button to go back one move for when you accidentally click the wrong direction. Quote Link to comment Share on other sites More sharing options...
Kiwi Posted November 11, 2016 Share Posted November 11, 2016 (edited) <-- does not animate, just showing off my score Here's a youtube video I made snow in action: Snow addified: 2048s.zip Kinda funny that as I was adding the feature to the Interrupt procedure, it wouldn't work. The window would pop up and close. Reading in the manual in the past basically saying don't put too much work in the on frame loop or stack overflow will occur, was on my mind. It took me awhile to remember if ROM size is over 16KB, remap the data. So I did that and then the snowing animation worked. Yay!!! With priority bit on for the back snowflakes. So I went ahead and boot up tile studio to draw the number and the backdrop for the bottom of the screen. The numbers are attached in the zip file. Only thing you have to know that the number 128, and 2048, the last tile displaying 8 is the duplicate tile that Intycolor found. So keep that in mind that you'll have to update the 2048 and above tile information in the 2 print_at trees in the source code if you're redrawing those 2 numbers. I changed the graphic mode to colorstack mode to make the priority bit work right for the numbers. I don't know if I broke anything or not. That snowman isn't from Christmas Carol as far as I know of. Rev(and/or cmart) will now have to put this on his LTO Flash and play it on his Intellivision. Edited November 11, 2016 by Kiwi 3 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.