Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: ztrumpet on January 31, 2010, 02:09:19 pm

Title: Plot Drop
Post by: ztrumpet on January 31, 2010, 02:09:19 pm
I had an idea on how to make this game at just past midnight.  Once I fell asleep, and woke up I started coding.  So here's a game that I coded in 2.5 hours, or 14 hours including the idea and 10 hours of sleep. ;D

Plot Drops!
In this game you must avoid the falling plot drops for as long as possible.  It's a little slow, but pretty fun.  If you want to look at the code I have no problem with it, but at just 449 bytes there's not a lot of code to look at. :)

Controls:
Left: Move Left
Right: Move Right
2nd: Pause and UnPause

This uses N, I%, PV, L3, L4, L5, L6, GDB1, and Ans.  It will overwrite anything in variables.
Enjoy, and let me know what you think!

Edit: Note the blemishes on the bottom of ths screenie are WabbitEmu's fault, not mine.  They do not exist on calc. :D
Also, due to the low framerate of this screenie, it flickers a lot.
Title: Re: Plot Drop
Post by: Galandros on January 31, 2010, 02:22:27 pm
Slow but the game couldn't be fast with so many drops.
You are using Plot commands, hence the name Plot Drop...?
Pretty smart, I also used Plot command for Rain Effect Contest.
Title: Re: Plot Drop
Post by: ztrumpet on January 31, 2010, 02:23:50 pm
That sounds like a good use of the Plot commands, for rain. :)
Edit:  What contest was this?

Yes, the name is because I'm using Plot1 and Plot2. ;D
Title: Re: Plot Drop
Post by: DJ Omnimaga on January 31, 2010, 02:30:02 pm
Wow nice, that brings me some old memories of me using Plot commands to draw some stuff. I never used them much, though, because I never figured how to do collision detection back then x.x

But good idea to save speed :)
Title: Re: Plot Drop
Post by: Galandros on January 31, 2010, 02:32:36 pm
That sounds like a good use of the Plot commands, for rain. :)
Plus the flicker was also an effect instead of something undesired. :)

Couldn't you get cool effects by changing the plot type? Instead of the box try the + and .
Title: Re: Plot Drop
Post by: ztrumpet on January 31, 2010, 02:36:19 pm
Here it is with different Plot Marks.  I like the box best, so I went with it. ;D
Which do you like best?
Title: Re: Plot Drop
Post by: DJ Omnimaga on January 31, 2010, 02:46:16 pm
I prefer the lil square thing.

Btw do you think you could make the scrolling 3x faster (not necessarly higher framerate but scroll more pixels at a time)? Maybe for different difficulty settings?
Title: Re: Plot Drop
Post by: ztrumpet on January 31, 2010, 05:09:53 pm
If you like I can make it scroll three pixels at a time, but that means reworking a lot of the program.  I think I'll do it, though. :)  Look for it by the end of the day. ;D
Title: Re: Plot Drop
Post by: ztrumpet on January 31, 2010, 07:43:21 pm
Here's the version DJ wanted. :)
It's even smaller, at 400 bytes.  It also dosn't use the variable PV.  Enjoy. ;D
Title: Re: Plot Drop
Post by: TsukasaZX on January 31, 2010, 10:35:48 pm
This is awesome! I'll have to download it and put it on my calc :D
Title: Re: Plot Drop
Post by: DJ Omnimaga on January 31, 2010, 11:29:10 pm
Nice ^^
Title: Re: Plot Drop
Post by: Galandros on February 01, 2010, 04:07:11 am
Here it is with different Plot Marks.  I like the box best, so I went with it. ;D
Which do you like best?
The three are good effects. I liked the "+" one.
My idea was to change the plot type time to time, optionally.

The three pixels down is even better than 1 in playbility, I think. The number of pixels down could give the difficulty to a player. Like 1 is easy, 2 is medium, 3 hard and 4/5 very hard.

You should package this different versions together. :)
Title: Re: Plot Drop
Post by: Builderboy on February 01, 2010, 09:59:16 pm
This reminds me of some of the old games i made back a while ago, they were never this fast though, they just used pxlOns O.O

Very fun and entertaining game!  Simple controls, simple concept, yet addicting gameplay ;D The best combination!
Title: Re: Plot Drop
Post by: Eeems on February 01, 2010, 10:13:51 pm
I was actually working on a quick xLib game like this during math. It works really fast (except for the fact I forgot how to do tilemaps x.x which will make it really playable)
I'm using a matrix, which speeds row shifting up lots, and as soon as tilemap is implemented, it will run at a really playable value :D. (well this is actually Celtic III, but only one command is cIII, the store pic, because the xLib comparability storepic command doesn't seem to work right.
Edit: ok, got that to work, and I implemented a crude greyscale, by making the screen, display and the character movement a subroutine, of course if I was to get rid of that it would run a bit faster (although character movement would slow down)
also, what's the easiest way to replace the top row of a matrix with a list? Is there any wierd command, or is a for loop the best bet?
Title: Re: Plot Drop
Post by: DJ Omnimaga on February 02, 2010, 01:45:30 am
I remember back then I tried a basic tunnel style game using xLIB. Graphics were poor, though. It just kept scrolling up then displayed a new part of the road
Title: Re: Plot Drop
Post by: Eeems on February 02, 2010, 01:52:53 am
Ah, hmm, idea...I wonder if I could do scrolling...
Well hopefully I can upload this soon, and Ztrumpet can blow it out of the water with plot drop :p
Title: Re: Plot Drop
Post by: ztrumpet on February 02, 2010, 04:19:43 pm
Eeems, I can't blow anything out of the water with this (execpt a game using points like this in basic) due to it's slow speed. ;D
Eeems, you get to blow me out of the water! :D

You should package this different versions together. :)
If I release them more than this, I'll put the two programs in a zip, but thier engines are too different to put in one program and keep both size and speed.  Thanks for the cool idea. :)
Title: Re: Plot Drop
Post by: Eeems on February 02, 2010, 05:11:17 pm
lol :P
well I finished two versions, a greyscale and a monochrome one, I'm still wondering if there is a fast way to store a list to a matrix row (top one) other then a for loop...
I'll try my best to get it up.

can't wait for yours!
Title: Re: Plot Drop
Post by: DJ Omnimaga on February 02, 2010, 11:09:31 pm
Nice
Title: Re: Plot Drop
Post by: ztrumpet on August 05, 2010, 04:25:47 pm
Alrighty, it's in the download section and in Ticalc's queue as well.  This was actually the first program that I wrote when I was staff here, and it's long been overdue in the download section. ;D

Here are the gifs I'm using. :D

http://www.omnimaga.org/index.php?action=downloads;sa=view;down=542
Title: Re: Plot Drop
Post by: yunhua98 on August 05, 2010, 04:48:28 pm
Nice!
btw, I realize the game is dodging, but the paddle thing made it look like the point was catching at first.  :P
Are you using line for the paddle?  Because that's really fast for Line!
Nice Job, as usual.  ;)

EDIT:  I really want to rate you up, but I want your respect to stay at The Game Answer.  XD
Title: Re: Plot Drop
Post by: nemo on August 05, 2010, 04:52:38 pm
i think he's using 3 plot-tokens and then pxl-off('ing the center pixels.
Title: Re: Plot Drop
Post by: ztrumpet on August 05, 2010, 04:54:20 pm
i think he's using 3 plot-tokens and then pxl-off('ing the center pixels.
I'm using another Plot, as a Line Graph. ;D

EDIT:  I really want to rate you up, but I want your respect to stay at The Game Answer.  XD
lol :P
Title: Re: Plot Drop
Post by: DJ Omnimaga on August 05, 2010, 04:55:49 pm
I like the usage of Plot command in the game. I wish I used it more often myself in mine, because you can get decent speed with many stuff at once and still have scrolling. Glad you are finally officially releasing it :). Nice job

3 to go
Title: Re: Plot Drop
Post by: yunhua98 on August 05, 2010, 04:56:13 pm
i think he's using 3 plot-tokens and then pxl-off('ing the center pixels.

Ahh, thanks, is that how the snake on TI|BD works?
Title: Re: Plot Drop
Post by: ztrumpet on August 05, 2010, 04:58:37 pm
i think he's using 3 plot-tokens and then pxl-off('ing the center pixels.

Ahh, thanks, is that how the snake on TI|BD works?
Nope, Edward H is just an awesome coder. ;D
He's using tons of pxl-tests. :)

(I assume you're referring to Nibbles. :) )