CodeWalrus

CodeWalrus Website => Contests => Topic started by: CKH4 on May 30, 2015, 03:06:22 AM

Title: [TI-84+ CSE][xLIBC]Color Smash
Post by: CKH4 on May 30, 2015, 03:06:22 AM
So my contest entry has been a speed code because I don't own the CSE. My friend was kind enough to lend me his calc when we weren't doing anything in math. Now he's given me his calc for the weekend and I'm so grateful.

So no screenie yet but the premise of the game is that you use 2nd and Alpha to change your color. 2nd for blue and Alpha for green. You can navigate the bottom pixels of the screen with left and right. There are falling boxes which you have to you have to avoid, unless you are the same color in which case you can 'smash' the box. The red boxes are molten and will kill you like the regular boxes of the opposite color. To view your high score recall the variable S on the home screen. As the game progresses the falling gets faster.

My high score is 58 so when you get a chance to play it, let me know what you get.

The options are available as lists and variables when you edit the program. The list CCT stores the colors. The order is {game background,  player blue, player green, box blue, box green, box red, screen background}. The pixel width and height are determined by variable W. The screen will automatically center and full screen is 40. C is the starting player color, 2 for blue and 3 for green. X and Y are the starting position for the player, default is 2,2. List CS is for the speed of falling. The first one is for the starting speed, the second is for how often to speed up.

Also totally random but I tied my high score in the gif.
(http://i.imgur.com/UiIyh1X.gif)


So I also managed to fit all of it into 664 bytes. Hope you enjoy it.
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 30, 2015, 04:20:28 AM
Looks quite nice. I wonder why it isn't full screen despite DCS8 supporting it, though? It might also be better to make that teal frame black instead so people don't see the game as circumventing the 4x3 resolution rules. Also I am glad that you are participating. :)
Title: Re: Color Smash
Post by: CKH4 on May 30, 2015, 04:23:47 AM
I forgot to change it but it shows the screen centering so I might just leave it out of laziness and the need to write the readme.
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 30, 2015, 04:33:01 AM
Aah ok. It shouldn't be hard to change, though, since it only involves setting the color to zero :P
Title: Re: Color Smash
Post by: CKH4 on May 30, 2015, 04:47:21 AM
It actually only requires changing 32->W to 40->W.

What else do I need to do besides submit to be eligible?
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 30, 2015, 05:00:22 AM
What is 40 for? Is it the size of the squares?

Besides that, make sure to have a readme in txt format attached with the submission and make sure that the contest entry actually works. :P
Title: Re: Color Smash
Post by: CKH4 on May 30, 2015, 05:04:09 AM
Yes, 40 is the size of the squares when it is fullscreen. Since that gets you more points I changed it to be full screen.
Title: Re: [TI-84+ CSE][XLIB]Color Smash
Post by: Snektron on May 30, 2015, 09:59:09 AM
Ohh awesome :D nice job CKH4
Title: Re: Color Smash
Post by: CKH4 on May 30, 2015, 01:54:16 PM
Thanks. It was a bit rushed so not where I'd want it to be. I would've added score display but I'm glad that I got it to like 650 bytes. It does flicker a lot less on calc and the 2nd and alpha commands are color coded so its a bit easier to control. Hope you enjoy playing it.
Title: Re: Color Smash
Post by: Unicorn on May 31, 2015, 07:21:47 AM
Good job getting this in on time! I honestly didn't get any points for optimization, but can't wait to try this out.
Title: Re: [TI-84+ CSE][XLIB]Color Smash
Post by: Snektron on May 31, 2015, 09:17:38 AM
Were there poijnts for optimization? didn't see them
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 31, 2015, 08:54:09 PM
I hope I am not too late, but @CKH4 your entry appears to be non-functional.

Unless it's because I am running DCSE 8.2 and that the entry is only for previous versions, the controls do not do anything in-game. I can't move around nor do anything else.
Title: Re: Color Smash
Post by: CKH4 on May 31, 2015, 08:55:50 PM
They are not sensitive at all. Have you tried holding them down?
Title: Re: [TI-84+ CSE][XLIB]Color Smash
Post by: Snektron on May 31, 2015, 08:57:56 PM
It seems like DCS 8.2 is stopping a lot of programs <_<
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 31, 2015, 08:58:45 PM
Now I tried and I seem to be able to move when I hold them down for half a second or so, but when I reach the edges of the screen, sometimes arrows will stop responding entirely and I can no longer move, while ALPHA/2nd will continue working.
Title: Re: Color Smash
Post by: CKH4 on May 31, 2015, 08:59:59 PM
I'll fix it and resubmit.
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 31, 2015, 09:01:12 PM
Quote from: Cumred_Snektron on May 31, 2015, 08:57:56 PM
It seems like DCS 8.2 is stopping a lot of programs <_<
I didn't have issues with First Fantasy: Mana Force and the tunnel game, though.
Title: Re: Color Smash
Post by: CKH4 on May 31, 2015, 09:14:06 PM
So, I found the problem. Really silly and stupid thing. It was entirely my fault, I should've tested the final version better.
Title: Re: Color Smash
Post by: Dream of Omnimaga on May 31, 2015, 10:05:01 PM
What caused it? (Without posting the source, of course)
Title: Re: Color Smash
Post by: CKH4 on May 31, 2015, 10:59:17 PM
I combined to if statements that stopped it from working.
Title: Re: Color Smash
Post by: Snektron on June 01, 2015, 07:22:34 AM
Quote from: CKH4 on May 31, 2015, 09:14:06 PM
So, I found the problem. Really silly and stupid thing. It was entirely my fault, I should've tested the final version better.

I get that sometimes too. When it's such a stupid bug it's even worse >.<
Title: Re: Color Smash
Post by: Unicorn on June 01, 2015, 04:19:22 PM
Don't remind me,I had a few If Then statements with one command. :banghead: :P