Author Topic: Another 2048  (Read 3443 times)

0 Members and 1 Guest are viewing this topic.

Offline Aspiring

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +5/-0
  • The only source of knowledge is experience-Einsten
    • View Profile
Another 2048
« on: June 18, 2014, 10:47:03 pm »
Here is my own 2048 clone.  currently its graphics are sad and it doesn't detect when you lose.  I only made it because my mom took my computer.  I am rather proud about how small it is.  (only 1500 bytes compiled) here's the code.  Feel free to do whatever you want with it. :)


I will probably not make it any better because I am working on an awesome pong with lots of powerups.  I even will have one powerup be to change your paddles to circular and the ball will bounce off the way you would expect.  (Saw a gif of a pong clone with this in someone's sig.)


Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Another 2048
« Reply #1 on: June 19, 2014, 03:37:50 am »
Any chance of a screenie?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: Another 2048
« Reply #2 on: June 19, 2014, 01:05:48 pm »
wish granted :p


EDIT : it is pretty good btw, but for an obscure reason, wabbit emulating in ti83+ would crash when I try the game >_>
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

Offline Aspiring

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +5/-0
  • The only source of knowledge is experience-Einsten
    • View Profile
Re: Another 2048
« Reply #3 on: June 19, 2014, 01:23:55 pm »
EDIT : it is pretty good btw, but for an obscure reason, wabbit emulating in ti83+ would crash when I try the game >_>
Hmm that is weird.... I don't think i am not doing anything that is not ti83+ friendly.  I even don't use the full command.  Could it be how I am getting / creating the highscore appvar?
Here's the appvar code:
Code: [Select]
"appvHS2048"->Str1SAVE
!If GetCalc(Str1SAVE)->H
Return!If GetCalc(Str1SAVE,2)->H:0->{H}^^r
End

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Another 2048
« Reply #4 on: June 19, 2014, 01:43:12 pm »
is the appvar in ram or in archive?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Aspiring

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +5/-0
  • The only source of knowledge is experience-Einsten
    • View Profile
Re: Another 2048
« Reply #5 on: June 19, 2014, 09:30:02 pm »
it is in the ram (should i put it in archive?)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Another 2048
« Reply #6 on: June 19, 2014, 10:13:19 pm »
It'd be better because ram clears are pretty frequent.

Offline JWinslow23

  • Coder Of Tomorrow
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 556
  • Rating: +43/-6
  • I make quality calculator games...when I have time
    • View Profile
Re: Another 2048
« Reply #7 on: June 19, 2014, 10:19:29 pm »
Nice to see another 2048 clone. At least this way, the 2048 craze is living, somehow...

And here is the code you want for creating the appvar (it even stores the pointer in M):
Code: [Select]
UnArchive "appvHS2048"
!If GetCalc("appvHS2048")->M
0->{GetCalc("appvHS2048",2)->M}^^r
End
This code loads the appvar whether or not it is in RAM or archive.
You can adapt this code for different appvar names, different variables to store the pointer to, and different appvar sizes. And I like to store the appvar in Archive when the program ends, just in case the calc crashes and a RAM clear is performed.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?