Author Topic: Tunnel - by ClrDraw  (Read 9922 times)

0 Members and 1 Guest are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #15 on: November 03, 2013, 01:52:50 pm »
That's really interesting, I was wondering how it stored it recently.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Tunnel - by ClrDraw
« Reply #16 on: November 03, 2013, 03:50:48 pm »
Tip: Use #ExprOn (that's normally the ExprOn token) anywhere before Horizontal+/- in your program and it becomes pretty much just as fast as Vertical+/-, at the cost of a 28-byte larger, speed-optimized routine. A few other routines have speed-optimized versions and also get speed benefits (with size costs) from #ExprOn, including ►Hex, DrawInv, and multiplication, and additionally Pt-On(), Pt-Change(), and Pt-And() if not compiling your code as an application.

If you want to speed it up even more, shift in more than one pixel per new frame. Each additional pixel shifted and redrawing of the tunnel will of course make each frame take longer to render and thus decrease the framerate, but you might be able to get away with a couple extra shifts per frame without noticeable choppiness.
« Last Edit: November 03, 2013, 03:51:59 pm by Runer112 »

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #17 on: November 03, 2013, 06:27:22 pm »
I didn't want to make is shift twice per frame because it would be too fast and choppy, but I forgot about #ExprOn and #ExprOff  :)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

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: Tunnel - by ClrDraw
« Reply #18 on: November 03, 2013, 07:34:33 pm »
They are, and it was surprisingly easier to program than many other things I've made!

It depends with which language, though. With xLIBC it's even harder than a tilemap O.O (due to the whole screen shifting looping issue).

Anyway this is a good start, plus you have it scroll at 1 pixel interval. :)

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #19 on: November 04, 2013, 04:46:24 pm »
Thanks  :)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #20 on: November 04, 2013, 09:31:39 pm »
Whenever I upload it to the download section it always says that the file can not be found, and I always select the file. Why doesn't it work? What am I doing wrong  :-\
I eventually just included a link to my other website...
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=868
EDIT1: OH, do I have to fill out the upload url in addition to choosing the file?
EDIT2: I found a way to put the download link from my own site so it works normally... It's still weird that the regular choose file button didn't work.

(oh and sorry I replied twice in a row, I didn't notice)
« Last Edit: November 04, 2013, 09:58:58 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: Tunnel - by ClrDraw
« Reply #21 on: November 04, 2013, 10:07:04 pm »
I think its easier to just use the url link anyway!

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #22 on: November 04, 2013, 10:12:28 pm »
Totally! I must've edited the darn thing like 20 times trying to get choose file to work  XD
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline RedHat

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +9/-0
    • View Profile
    • GitHub (RedInquisitive)
Re: Tunnel - by ClrDraw
« Reply #23 on: November 08, 2013, 04:47:43 pm »
Hmmm, you wouldn't perhaps mind if I ported this to the TI-Nspire, would you?

Great job, by the way, just wanted permission because I think that some of my friends would love a game like this!  :thumbsup:

(Of course I'll have your name first in the credits, duh!)

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #24 on: November 08, 2013, 05:08:47 pm »
Quote
Hmmm, you wouldn't perhaps mind if I ported this to the TI-Nspire, would you?

Of course you can :) this particular game wasn't very hard to code so I made it completely open source.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline RedHat

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +9/-0
    • View Profile
    • GitHub (RedInquisitive)
Re: Tunnel - by ClrDraw
« Reply #25 on: November 08, 2013, 05:17:24 pm »
Quote
Hmmm, you wouldn't perhaps mind if I ported this to the TI-Nspire, would you?

Of course you can :) this particular game wasn't very hard to code so I made it completely open source.

Awww, yea! Expect to see one soon, in COLOR :D

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Tunnel - by ClrDraw
« Reply #26 on: November 08, 2013, 05:31:02 pm »
Haha, it's getting serious now  XD I'm getting a color ti soon, I can't wait to try it out!
« Last Edit: November 08, 2013, 05:31:23 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Tunnel - by ClrDraw
« Reply #27 on: November 08, 2013, 05:33:56 pm »
Quote
Hmmm, you wouldn't perhaps mind if I ported this to the TI-Nspire, would you?

Of course you can :) this particular game wasn't very hard to code so I made it completely open source.

Awww, yea! Expect to see one soon, in COLOR :D

Making it for ndless like your Hexaspire? or will it be in lua



Offline RedHat

  • LV2 Member (Next: 40)
  • **
  • Posts: 39
  • Rating: +9/-0
    • View Profile
    • GitHub (RedInquisitive)
Re: Tunnel - by ClrDraw
« Reply #28 on: November 08, 2013, 05:42:14 pm »
I think Ndless. I like its speed over lua, as lua in interpreted rather then native. I might make a lua program in the future. I almost have it done pretty much too!  :thumbsup:

Offline LDStudios

  • Coder Of Tomorrow
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 388
  • Rating: +41/-1
    • View Profile
    • LD Studios
Re: Tunnel - by ClrDraw
« Reply #29 on: November 08, 2013, 05:45:12 pm »
Sounds good! :)