Author Topic: TI-2048 by Josiah W.  (Read 20603 times)

0 Members and 2 Guests are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #15 on: May 24, 2014, 10:13:57 am »
After comparison, I see what you mean. It's a bit choppier, although that gif is making it look choppier than it really is.

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: TI-2048 by Josiah W.
« Reply #16 on: May 24, 2014, 06:52:28 pm »
Runer, that was the fix for the problem, yes. But personally, I preferred the smoother animation.
Hayleia, the anim looks fine to me on-calc. Because everyone was asking for fast animations, it now moves 4 pixels at a time. Happy now, everyone? :P
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: TI-2048 by Josiah W.
« Reply #17 on: May 25, 2014, 09:16:03 am »
I must say that this is my favourite 2048 port right now :)
great job!
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

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: TI-2048 by Josiah W.
« Reply #18 on: May 25, 2014, 12:10:52 pm »
Well, thanks! :)

BTW, I have a section of code that I'm having a bit of trouble optimizing. The code to display whether or not you win or lose is the same, except for a few minor differences. The problem is, I've never been able to combine them. Help? :/
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline TheCoder1998

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 434
  • Rating: +20/-2
  • my art is written in code, not in graphite
    • View Profile
    • My website :D
Re: TI-2048 by Josiah W.
« Reply #19 on: May 26, 2014, 05:04:10 am »
Why don't you upload the game to ticalc?
my ticalc acc:

http://www.ticalc.org/archives/files/authors/113/11365.html

Spoiler For The Best Song Ever:


follow me on tumblr :)
www.rickdepizza.tumblr.com

check out my anilist :D
http://anilist.co/animelist/29701/Rickdepizza

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: TI-2048 by Josiah W.
« Reply #20 on: May 26, 2014, 12:15:45 pm »
My game isn't fully optimized yet. Usually, I hold a release on ticalc until my games are working and my code is the smallest possible. Heck, I waited until version 2.2 to release my Flappy Bird clone! :P

So, anybody that can help with optimizations, please do if you want this on ticalc!
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #21 on: May 28, 2014, 07:59:23 pm »
Why do you save the high score in an AppVar? It can't be more than 2 bytes. Just add two empty bytes in your program and save it there, ion/whatever shell you use will take care of the SMC for you. If you want it to be nostub you can do the SMC yourself by finding the program in RAM and overwriting the two high score bytes. People these days are AppVar crazy ;) Anyway it looks really great, i'm going to download this now and send it to me calc :)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #22 on: May 29, 2014, 02:05:01 am »
Score is 3 bytes here, not 2. It's not a lot more but I just wanted to point it out :P

Also, there are reasons why people are "appvar crazy". First of all, not everyone use a shell (I think about people stuck with a regular 83+ and who want to save as much space as possible), so except if we do the SMC ourself as you said, which is a lot more annoying for not so much, we can't save the highscore for everyone. Second of all, SMC requires to re-archive the whole program at exit, while saving in appvar just requires to re-archive the small appvar, so it has two advntages. The first one being that exiting is faster, the second one being that garbage colleting happens less frequently (I still think about people stuck with  aregular 83+).
At least, those are the reasons why I use appvars, I don't know if everyone do it for the same reasons ;)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-2048 by Josiah W.
« Reply #23 on: May 29, 2014, 02:08:24 am »
Yeah I remember having to Garbage Collect after every Mario execution >.<

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #24 on: May 29, 2014, 04:17:32 am »
Also, in a PC game would you do SMC for a high score ? No because SMC is ugly. :P

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #25 on: May 29, 2014, 08:30:01 am »
Haha but this isn't a PC game, and (practically) every Gameboy game uses it. Also, the majority of games are written for shells, and if you have an 83+ games written for shells will be smaller since they can reuse (probably Ion's) sprite code. It's also not much code to implement yourself. And using SMC here would be smaller than using an AppVar, as the AppVar takes up 9 bytes in RAM (for the VAT entry) and 3 bytes in archive (plus all the code to handle the AppVar). I guess it's not really a big deal, i just prefer having everything in one program when it's possible/convenient.

@JWinslow23: I just loaded this up on my calc, it looks and works great, i was proud of myself for getting to 512 :D

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: TI-2048 by Josiah W.
« Reply #26 on: May 29, 2014, 03:10:53 pm »
He's right. You could just tore the score and stuff to a GDB. :P I just like Appvars; that way, scores and boards could be transferred between calcs without a different program file.

chickendude, I'm glad for you! The highest number I ever got was 4096. I'm still working on getting an actual 3-byte score.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI-2048 by Josiah W.
« Reply #27 on: May 29, 2014, 04:00:07 pm »
I'm currently at 32768 on my phone and still didn't lose. :trollface:

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: TI-2048 by Josiah W.
« Reply #28 on: June 01, 2014, 04:10:11 pm »
I fixed a score display bug! When you win (or make a merge right before a GAME OVER), it doesn't update the score display until you continue (or if GAME OVER, not at all).
I would really appreciate it if I could get help with optimization, though. Cause really, I'm getting nowhere. ???

Download in the attachments. A2048 and LIB3BYTE must be present on your calc to compile.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?

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: TI-2048 by Josiah W.
« Reply #29 on: June 07, 2014, 06:41:35 pm »
Bump.

I'm really surprised that not many people are paying attention to this as much as they did Flappy Bird. It's like everybody that looked at this just said "Oh, he finished, that's nice" and disregarded this. I worked for months on this (much less than I did Flappy Bird), and am kinda surprised how bad this game is doing.
21 all-time downloads for any version of either of the 2048 source files, and 15 downloads for any version of the Noshell compiled result, as compared to 44 all-time downloads for the Flappy source and 82 downloads for any version of the Noshell compiled result (which doesn't include any versions prior to v1.10), not to mention 204 Flappy DLs on ticalc.

Don't take any of the above the wrong way, though. It's nice to have the people that commented and looked say the things they said and do the things they did, but for some reason, this isn't as popular now as I thought it'd be. Please don't hate me. :/

I'll release the file to ticalc as soon as I am certain that this program is at its fastest and/or smallest. There are some spots that I'm unsure of whether or not to optimize.
Did you know that "Ammonia Gas" rearranged is "As Omnimaga"?
Click here for the only set of games you'll ever need
= ?