Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Matrefeytontias on May 05, 2013, 05:22:04 am

Title: [Axe] DualStar
Post by: Matrefeytontias on May 05, 2013, 05:22:04 am
Hallaw people,

Yesterday I got bored and wrote this small game in 30-40 minutes :P It's a 2 players minigame, so you'll need two calcs, a link cable and a friend.

You were engaged in an epic space battle against your greatest enemy when you see that your trajectories slowly brings you in an asteroid field ... which can change direction due to gravity perturbation.

So the point of it is that you must blast each other while dodging the other's shots and the asteroids that move on the screen. Your ship fires automatically and aims the other ship, so you only have to take care of avoiding being touched by anything. On the left side of each calc you can see a line that empties slowly ; when it's empty, the asteroid field starts moving in another random direction - so try to get away of any asteroid to avoid a sudden hit.

As I said, I coded this in less than an hour, so I didn't make any menu, nor even any automatic quit :P so basically, when the game stops, the player which has "Done" written on his calc loose, and the other win. If you win, press [clear] to exit the game.

Also, I only ask to one user to press [2nd] when the two are ready. So if you press without your friend ready, press [clear] and retry. To sum up, if something goes wrong, press [clear], I inserted a [clear] key detection in all loops of the game :P

The player who hits [2nd] first will be the empty square, and the other player the black square.

It's a pixel-based detection, so you can't say "meeeeeh this hitbox is bugged" :P

Spoiler For Badly taken huge photo:
(http://img.removedfromgame.com/imgs/dualStar.jpg)

Source (DUAL.8xp) and binaries (DUALSTAR.8xp) attached.

Enjoy and as ever, share comments :)
Title: Re: [Axe] DualStar
Post by: Hayleia on May 05, 2013, 05:52:26 am
you'll need two calcs...
Got them.

...a link cable...
Got it.

...and a friend.
Awww too bad :(

JK :P

Anyway, that looks great as usual :)
However, isn't it posible to make multi-calc screenshots ? Kerm did that for a multi-calc pong, I don't know how, so I think it would be great if you could do the same here :)
(but I don't know how you would play both players on the emulator :P)
Title: Re: [Axe] DualStar
Post by: Matrefeytontias on May 05, 2013, 05:55:41 am
XD

It's possible, but it's so unpractical playing this game alone (even with two real calcs, I can't survive 10 seconds) I had to shoot a pic.
Title: Re: [Axe] DualStar
Post by: alex99 on May 05, 2013, 07:11:21 am
hey it´s cool i playedit with my friend in the physicsclass :P
Title: Re: [Axe] DualStar
Post by: Darl181 on May 05, 2013, 04:27:11 pm
Looking good, but I'd suggest implementing an AI at some point so more people can use it :P

Is it one-hit game over or might there be some sort of health bar/function?
Title: Re: [Axe] DualStar
Post by: Matrefeytontias on May 05, 2013, 05:02:04 pm
I didn't plan anything more than what's already done. It's just something I threw off in one hour, to improve my multiplay programming experience, mostly for fun and also because I thought I wanted to play a game like this :P

In addition, I'm awfully terrible at AI programming :P
Title: Re: [Axe] DualStar
Post by: pimathbrainiac on May 05, 2013, 05:49:05 pm
*whistles*

I'm bad at whistling...

Looks really cool. If I have time, I'll make you some screenies!
Title: Re: [Axe] DualStar
Post by: Sorunome on May 05, 2013, 05:56:00 pm
Sounds awesome, for less than a hour O.O