Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Michael_Lee on October 29, 2010, 06:39:53 pm

Title: Minigames
Post by: Michael_Lee on October 29, 2010, 06:39:53 pm
I was extremely bored in chemistry class + I was procrastinating on my other projects + I wanted practice coding =
A random game!

You are the little ship thing, and you have to dodge the blocks.
Press [2ND] to temporarily turn invisible.  Turning invisible drains the bar at the top, so conservation is emphasized.
I added difficulty, so it starts off a bit slow, but eventually grows hectic (and you encounter more obstacles, like bouncing smiley faces).
Press [MODE] to pause and unpause.

Interesting fact: this was originally intended to be a tunnel clone, but it didn't look good and I went a little overboard on the projectiles, so I mutated the game just a little more.

I think I'll try to make a new minigame every week or so, because I think I should really try to practice coding more.
Title: Re: Minigames
Post by: shmibs on October 29, 2010, 06:53:46 pm
dang, that's really cool! especially the multiple types of projectiles!
making minigames is a wonderful way to get practice
Title: Re: Minigames
Post by: Darl181 on October 29, 2010, 06:54:37 pm
Wow, this is great.  Can't wait to see more ;D
Title: Re: Minigames
Post by: ASHBAD_ALVIN on October 29, 2010, 06:55:48 pm
looking good right now ;)
Title: Re: Minigames
Post by: DJ Omnimaga on October 29, 2010, 07:03:56 pm
WOW that looks great and fun to play! I'm gonna try it when I get some time. You should put it in the download section, ticalc and stuff. I can't wait what you'll come up with next :)

By the way how do you do the noise effect in the blocks?
Title: Re: Minigames
Post by: Michael_Lee on October 29, 2010, 07:09:35 pm
Basically, this:
Code: [Select]
.BLAH
[Add hex here to make a border around an 8x8 block]->Pic1
Pxl-Mask(A,B,rand^6000)
Pt-On(A,B,Pic1)
I read from a random section of the calculators RAM, and for some reason, it gives almost a scrolling effect...


Title: Re: Minigames
Post by: meishe91 on October 29, 2010, 07:10:24 pm
That looks really cool! Great job on it :)
Title: Re: Minigames
Post by: ztrumpet on October 29, 2010, 07:26:52 pm
Wow, that's wonderful!  Great job! ;D

I did find a little glitch...
Also, once I got to a certain point, enemies no longer came. O.o
Title: Re: Minigames
Post by: Michael_Lee on October 29, 2010, 07:32:33 pm
Hey - no cheating!
You can't go off-screen!  That's not in the spirit of the game!

...Well, in all serious-ness, it's really more of an oversight, not a glitch.  I'll fix it later.
Title: Re: Minigames
Post by: Deep Toaster on October 29, 2010, 07:41:09 pm
Wow, it looks really good! And almost 3D if you match the speeds with the blocks' sizes... But then, that wouldn't make much sense. Why would the ship bump into obstacles at totally different depths? :D
Title: Re: Minigames
Post by: DJ Omnimaga on October 29, 2010, 08:54:33 pm
Basically, this:
Code: [Select]
.BLAH
[Add hex here to make a border around an 8x8 block]->Pic1
Pxl-Mask(A,B,rand^6000)
Pt-On(A,B,Pic1)
I read from a random section of the calculators RAM, and for some reason, it gives almost a scrolling effect...



Oh wow I forgot about reading from a non-constant memory address or a pointer. I guess it's like my sandstorm effect seen in Nostalgia title screen by FinaleTI, but with 8x8 blocks. Nice effect. :)
Title: Re: Minigames
Post by: DJ Omnimaga on January 11, 2011, 08:54:51 pm
I finally got time to try this and good job so far Michael_Lee. I hope you eventually finish it ;D
Title: Re: Minigames
Post by: ztrumpet on January 17, 2011, 09:03:16 pm
By the way, many of my friends at school have been hooked by this. :D
Title: Re: Minigames
Post by: Binder News on January 17, 2011, 09:44:03 pm
My friend made something a lot like this. Except, it has only 1 enemy (a 4x8 block) and you are going vertical.
The weirdest part is that the ship sprites are exactly the same, and he called his game Dodge as well!
Creepy...
Title: Re: Minigames
Post by: Michael_Lee on January 17, 2011, 09:54:24 pm
By the way, many of my friends at school have been hooked by this. :D

/me is honored beyond words that non-developers have found/are playing this game and enjoy it.
/me is also slightly nervous, due to the fact that he never quite reassured himself that the game was completely safe...

My friend made something a lot like this. Except, it has only 1 enemy (a 4x8 block) and you are going vertical.
The weirdest part is that the ship sprites are exactly the same, and he called his game Dodge as well!
Creepy...
o.O
That is weird.
Title: Re: Minigames
Post by: DJ Omnimaga on January 19, 2011, 03:05:30 pm
I did not get any crash actually. I think I could go out of the screen at the bottom but I died when I did. I haven't tried on real hardware, though.
Title: Re: Minigames
Post by: AngelFish on January 19, 2011, 03:24:19 pm
/me is also slightly nervous, due to the fact that he never quite reassured himself that the game was completely safe...

Well, if you're just reading it is. Believe me, I've read from literally every accessible location in memory two or three times.
Title: Re: Minigames
Post by: DJ Omnimaga on January 19, 2011, 03:26:51 pm
Couldn't Axe corrupt your program data when pressing PRGM on an error even if it just read the code, though? ???
Title: Re: Minigames
Post by: AngelFish on January 19, 2011, 03:28:02 pm
Not if you're reading. Reading typically uses a different path than writing in microprocessors, so reading doesn't change the values of bits.
Title: Re: Minigames
Post by: Michael_Lee on January 20, 2011, 02:39:42 pm
The part that I'm somewhat worried about is when it creates enemies.  It uses L1 as a stack to hold the coordinates, etc. of the enemies, and I'm not entirely sure if I added a check to prevent that buffer from overflowing.

Also, I made a platformer thing to practice, inspired by Canabalt.
Up key to jump, [2ND] key to temporarily turn into ghost mode (walk through walls, enemies, etc.)
Collision detection while ghosting is a bit patchy, though.
The bars to the left show you how much longer you can ghost.
The amount of enemies increases as you keep playing (well, slowly increases)

Axe source is ARUN, compiles to RUN.
Title: Re: Minigames
Post by: yunhua98 on January 20, 2011, 04:31:59 pm
is that that building effect?  that looks nice!
Title: Re: Minigames
Post by: DJ Omnimaga on January 20, 2011, 09:18:47 pm
Not if you're reading. Reading typically uses a different path than writing in microprocessors, so reading doesn't change the values of bits.
Ok, so basically when Axe opens the source code on an error, it must be writing stuff to memory, then, since some crashes apparently occured.

The part that I'm somewhat worried about is when it creates enemies.  It uses L1 as a stack to hold the coordinates, etc. of the enemies, and I'm not entirely sure if I added a check to prevent that buffer from overflowing.

Also, I made a platformer thing to practice, inspired by Canabalt.
Up key to jump, [2ND] key to temporarily turn into ghost mode (walk through walls, enemies, etc.)
Collision detection while ghosting is a bit patchy, though.
The bars to the left show you how much longer you can ghost.
The amount of enemies increases as you keep playing (well, slowly increases)

Axe source is ARUN, compiles to RUN.
(http://www.omnimaga.org/index.php?action=dlattach;topic=5079.0;attach=5700;image)
Woah that looks great! It reminds me of Space Dash. I'll have to try this soon. Is it finished? You should probably put it in the downloads section and on ticalc if it's the case. O.O
Title: Re: Minigames
Post by: Munchor on January 21, 2011, 03:29:08 pm
Nice Michael Lee!

@DJ: It reminds me of Space Dash a lot too!
Title: Re: Minigames
Post by: squidgetx on January 21, 2011, 06:26:56 pm
Did someone say space dash? ;)

Regardless, looks nice Michael. I like the building effect in the back a lot :) The jumping looks a bit choppy? Or is that just the screenshot?
Title: Re: Minigames
Post by: Michael_Lee on January 21, 2011, 06:38:25 pm
Jumping is a little choppy -- not sure how I can stop it from doing that.
Title: Re: Minigames
Post by: Builderboy on January 22, 2011, 03:00:19 pm
I love love love that background building effect!  It really gives it a canabalt feel :)
Title: Re: Minigames
Post by: DJ Omnimaga on January 24, 2011, 04:31:10 pm
Btw is that supposed to happen? ??? Pressing 2nd leaves a trail behind the character, pressing up arrow when jumping about when you stop going down allows you to jump again and pausing the game with alpha swaps building colors. ???
Title: Re: Minigames
Post by: Michael_Lee on January 24, 2011, 06:33:35 pm
1] About the trail: I got lazy :P  I used pt-Change or Pt-Off to change the sprite stuff, and didn't clean up the mess.
2] Pressing the up arrow... I'm not sure what you mean - could you explain further?
3] The building thing is a bit weird.  I originally intended for all the buildings to be the same, and it was, but then I used a sprite that looked something like this:
Code: [Select]
████████
█ █ █ ██
██ █ █ █
█ █ █ ██
██ █ █ █
█ █ █ ██
██ █ █ █
████████
Instead of being a sort of darker gray like I though it would, it did something weird with the grayscale and now half of the buildings display as black with flashes of white/gray while the other half is pure gray.  Weird, no?  For some reason, it looks like each building alternates color, and pausing then continuing the game can cause the effect to flip-flop.
Title: Re: Minigames
Post by: DJ Omnimaga on January 25, 2011, 01:37:19 am
Hmm I see. As for the up arrow glitch, I'll try posting a screenshot I think. I used calccapture so you see when I press buttons.

If I spam the up arrow key I can even loop through the screen if I'm lucky.
Title: Re: Minigames
Post by: z80man on January 25, 2011, 01:51:30 am
So by looping do you mean going so high that you come up through the bottom if the screen.
Title: Re: Minigames
Post by: DJ Omnimaga on January 25, 2011, 02:14:37 am
Yeah. (if there's no floor. Otherwise I die when hitting the floor from below the screen)