Author Topic: [Game] SplitIt  (Read 9247 times)

0 Members and 1 Guest are viewing this topic.

Offline JamesV

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 276
  • Rating: +77/-0
    • View Profile
    • James V's TI-Calculator page
Re: [Game] SplitIt
« Reply #15 on: June 23, 2014, 09:33:39 pm »
This looks really cool, well done Axenntio! :)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Game] SplitIt
« Reply #16 on: June 24, 2014, 03:05:49 am »
This looks really cool! I also like the menu, it's really well laid out.

For smooth scrolling the blocks, it looks like there are six possible positions for the blocks. What i would do is have 6 bytes in saferam that can be set to on ($FF or %11111111 in binary) or off ($00). Then, when you scroll the screen left, first shift that byte so that it gets put into the carry then shift the rest of the screen. Repeat until you've scrolled the first 8 rows, then increase to the next byte in saferam and so on until you've scrolled the whole screen. I'm not sure if Axe has bit rotation commands (i don't know how you'd scroll the screen otherwise, though). This way is probably much simpler than drawing a sprite every 8 frames and faster.

Nice job, Axenntio!
Axe doesn't really have bit rotation commands (except /2 and *2) but you still can use the command Asm(). That's in fact exactly what I did to have my pipes and background to scroll smoothly in Flappy Bird.
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 Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [Game] SplitIt
« Reply #17 on: June 24, 2014, 09:06:29 am »
For smooth scrolling the blocks, it looks like there are six possible positions for the blocks. What i would do is have 6 bytes in saferam that can be set to on ($FF or %11111111 in binary) or off ($00). Then, when you scroll the screen left, first shift that byte so that it gets put into the carry then shift the rest of the screen. Repeat until you've scrolled the first 8 rows, then increase to the next byte in saferam and so on until you've scrolled the whole screen. I'm not sure if Axe has bit rotation commands (i don't know how you'd scroll the screen otherwise, though). This way is probably much simpler than drawing a sprite every 8 frames and faster.

Axe has the Horizontal - command, which scrolls the buffer contents one pixel to the left, shifting in white pixels. That's probably the most common way to make an automatic side-scroller in Axe: combining that with drawing the 1 column of pixels that got shifted in.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Game] SplitIt
« Reply #18 on: June 24, 2014, 09:08:32 am »
Fwiw I wrote a smooth scrolling tilemapper and just modified the horizontal +/- commands to shift in pixels from another buffer.

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +3/-0
    • View Profile
Re: [Game] SplitIt
« Reply #19 on: June 24, 2014, 10:35:23 am »
For the block appear, I use Horizontal- , it's for this, I don't have the capacity to make a smooth appear, but instead, I've sucess :D
The smooth appear work :3

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +3/-0
    • View Profile
Re: [Game] SplitIt
« Reply #20 on: June 27, 2014, 03:41:31 pm »
Update ! :D


+ Smooth appear of the walls
- Smooth movement of the 2 blocks

Hope you enjoy this :)

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: [Game] SplitIt
« Reply #21 on: June 27, 2014, 09:05:30 pm »
I really like the score feature :)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: [Game] SplitIt
« Reply #22 on: June 28, 2014, 08:39:59 am »
That looks a lot better :) Btw, for faster scrolling you can just shift two pixels at a time before updating the screen, people probably won't even notice that you're skipping a pixel.

Offline Axenntio

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +3/-0
    • View Profile
Re: [Game] SplitIt
« Reply #23 on: June 28, 2014, 09:18:54 am »
Ho yea but increase the speed is not necessary ?
Because the Hard mode is hard no ? :P

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: [Game] SplitIt
« Reply #24 on: July 07, 2014, 01:36:28 am »
I like the menu.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE