October 17, 2019, 09:24:55 pm

News:

Juju thinks he's so clever by putting funny stuff here


The shoutbox is currently out of service. Join us on Discord instead.

[TI-84+ CSE][xLIBC]Color Smash

Started by CKH4, May 30, 2015, 03:06:22 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CKH4

May 30, 2015, 03:06:22 am Last Edit: June 23, 2015, 02:34:14 pm by CKH4
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.



So I also managed to fit all of it into 664 bytes. Hope you enjoy it.


DJ Omnimaga

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. :)

CKH4

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.


DJ Omnimaga

Aah ok. It shouldn't be hard to change, though, since it only involves setting the color to zero :P

CKH4

It actually only requires changing 32->W to 40->W.

What else do I need to do besides submit to be eligible?


DJ Omnimaga

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

CKH4

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.


Snektron

Legends say if you spam more than DJ Omnimaga, you will become a walrus...


CKH4

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.


Unicorn

Good job getting this in on time! I honestly didn't get any points for optimization, but can't wait to try this out.



??? ??? ??? ??? ???

Snektron

Were there poijnts for optimization? didn't see them
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

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.

CKH4

They are not sensitive at all. Have you tried holding them down?


Snektron

It seems like DCS 8.2 is stopping a lot of programs <_<
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

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.

Powered by EzPortal