Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Munchor on April 25, 2011, 11:05:40 am

Title: Mission Copter
Post by: Munchor on April 25, 2011, 11:05:40 am
My last project, which I started last afternoon is now finished. Yes, I did it less than one day :)

Quote
Mission Copter is a simple, but addicting helicopter game for the TI 83/84+ (SE) calculators.
It features highscores, it gets harder as it goes and is very simple to play.

Here's a screenshot:
(http://img.removedfromgame.com/imgs/Screenshot.gif)

I highly recommend you to try it on a real calculator, in this case it's much better than in an emulator.

If you have any ideas just tell me, the source code is included, feel free to play with it, but don't use it as yours. I'd like to thanks ZippyDee for making the helicopter sprite and Fast Crash for helping me with the concept of horizontal moving.
Title: Mission Copter
Post by: Munchor on April 25, 2011, 11:05:52 am
Mission Copter



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=658
Title: Re: Mission Copter
Post by: Stefan Bauwens on April 25, 2011, 05:26:01 pm
Nice Scout.
I couldn't really see it on the screenshot, but does it get faster after a time?
If it doesn't I think that could be something you could add. Good job. :)
Title: Re: Mission Copter
Post by: ztrumpet on April 25, 2011, 06:07:52 pm
Looks nice. :)
If you could add a rotating helicopter blade, I think it would look a lot cooler. :)
Title: Re: Mission Copter
Post by: Munchor on April 26, 2011, 07:39:07 am
Nice Scout.
I couldn't really see it on the screenshot, but does it get faster after a time?
If it doesn't I think that could be something you could add. Good job. :)

Of course it gets harder and harder with time, that's obvious :D

Looks nice. :)
If you could add a rotating helicopter blade, I think it would look a lot cooler. :)

I'm not really sure of how I could do that. It's pretty much 2D.
Title: Re: Mission Copter
Post by: aeTIos on April 26, 2011, 07:47:58 am
There is a relative easy way to cheat: if you go to the very right side of the screen, you dont crash.
Title: Re: Mission Copter
Post by: Munchor on April 26, 2011, 07:58:47 am
There is a relative easy way to cheat: if you go to the very right side of the screen, you dont crash.

Hehe, but you die.

Code: [Select]
If X=88
.LOSE CODE
End

It works like that.
Title: Re: Mission Copter
Post by: aeTIos on April 26, 2011, 08:03:40 am
no, I cheated out until >6000 points
Title: Re: Mission Copter
Post by: Munchor on April 26, 2011, 08:09:58 am
Can someone admin merge this post with the other topic here (http://ourl.ca/10621/202617)?
Title: Re: Mission Copter
Post by: Munchor on April 26, 2011, 08:11:39 am
I'll upload a new version this week fixing that. And how did you have patient to play like that for so long?

This is also the first game I made that I'm addicted to :P

I'll change the title screen slightly and slow down the 84+ (SE) and Nspire version: Asm(08080808 Stuff like that to slow it down.

Title: Re: Mission Copter
Post by: aeTIos on April 26, 2011, 08:13:00 am
What is the asm code at the start of the prog for? It does also work without it.
Title: Re: Mission Copter
Post by: Stefan Bauwens on April 26, 2011, 08:35:14 am
Nice Scout.
I couldn't really see it on the screenshot, but does it get faster after a time?
If it doesn't I think that could be something you could add. Good job. :)

Of course it gets harder and harder with time, that's obvious :D

Looks nice. :)
If you could add a rotating helicopter blade, I think it would look a lot cooler. :)

I'm not really sure of how I could do that. It's pretty much 2D.
Yes, I think he means that the blade could look like it was turning even though you just look from the side.
For example(If this is the blade):
11100111
then it turn into:
00011000.
Title: Re: Mission Copter
Post by: Munchor on April 26, 2011, 02:20:35 pm
What is the asm code at the start of the prog for? It does also work without it.

http://www.davidgom.co.cc/z80.html (http://www.davidgom.co.cc/z80.html) You should try that before you ask what hex code does.

@Stefan: Thanks I'll do that.
Title: Re: Mission Copter
Post by: DJ Omnimaga on April 26, 2011, 03:27:05 pm
Seems nice, I wonder if there could be settings to change how fast the ground/ceiling goes up and down and the scrolling speed? I think with the rectangles obstacles it's pretty fine, though.
Title: Re: Mission Copter
Post by: Ashbad on April 26, 2011, 04:28:21 pm
One way to efficiently do that is by either implementing an algorithm to do so, or simply skipping lines every other frame or so, such as in Vector Tunnel (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=614) where I implement that.  It actually creates a very amusing effect, and the walls still are just as visible, so no seizure-inducing things there :)

And, yes, great job, scout!  this looks very good :)
Title: Re: Mission Copter
Post by: ztrumpet on April 26, 2011, 09:28:50 pm
I mean to make it rotate and look like this: http://ourl.ca/6173
I think it look a lot more realistic than a stationary sprite. ;)
Title: Re: Mission Copter
Post by: ralphdspam on April 26, 2011, 09:37:31 pm
Nice game.  I really like the feel of gravity in the game.  :D

I did have trouble running the SE version, though.  It places graphics at nonsensical locations.  (maybe the Full mode display glitch on 0.5.1?)
Title: Re: Mission Copter
Post by: Munchor on April 27, 2011, 02:50:13 am
I have to say I will not use the 15MHz mode for several reasons: it's too fast, graphs appear weird for raplhdspam and it consumes too much battery.
Title: Re: Mission Copter
Post by: Stefan Bauwens on April 27, 2011, 02:56:42 am
I saw in SIrCmpwn's version that the helicopter explodes when it hits something. Maybe you would wanna add that too?
Title: Re: Mission Copter
Post by: Munchor on April 27, 2011, 09:29:23 am
I saw in SIrCmpwn's version that the helicopter explodes when it hits something. Maybe you would wanna add that too?

Also on the to-do list :D
Title: Re: Mission Copter
Post by: DJ Omnimaga on April 27, 2011, 10:21:22 pm
I think display commands no longer works in 15 Mhz mode.

You must do Normal:DispGraph:Full.
Title: Re: Mission Copter
Post by: Munchor on April 28, 2011, 02:49:21 am
I think display commands no longer works in 15 Mhz mode.

You must do Normal:DispGraph:Full.

In the 84+ Keypad they work, hum. Eitherway, I'll remove Full from the game not just because of this. My calculator's battery is very important.
Title: Re: Mission Copter
Post by: Munchor on April 28, 2011, 03:10:07 pm
I have a new screenshot to show you!

(http://img.removedfromgame.com/imgs/copterscreenshotteaser.gif)

What do you think? A new version will be released soon... :)
Title: Re: Mission Copter
Post by: Ashbad on April 28, 2011, 03:53:08 pm
I think it looks great :D keep it up!  I like the new blade and the title part :)
Title: Re: Mission Copter
Post by: Stefan Bauwens on April 28, 2011, 03:57:23 pm
Nice, I see you implanted the moving chopper.
Title: Re: Mission Copter
Post by: Munchor on April 28, 2011, 04:28:51 pm
I think it looks great :D keep it up!  I like the new blade and the title part :)

Nice, I see you implanted the moving chopper.

Thanks both of you :D For today I'll make the collision detection much better and perhaps make it a bit slower and make the contrast between the difficulty when you begin and the difficulty when the game is more advanced even bigger. It gets harder with time now, but not enough :D

Also, the score is in the screen, although Wabbit doesn't display it, so I might be adding it in another place.
Title: Re: Mission Copter
Post by: DJ Omnimaga on April 28, 2011, 04:30:51 pm
Wow nice, I like the new speed and look personally. The more pixelated walls actually makes the game look more like it's in a rocky cavern too. :D
Title: Re: Mission Copter
Post by: Madskillz on April 28, 2011, 04:42:49 pm
I agree, looks topnotch so far. Keep it up Scout.
Title: Re: Mission Copter
Post by: ztrumpet on April 28, 2011, 05:05:32 pm
I really like how it looks now.  Heep up the great work! ;D
Title: Re: Mission Copter
Post by: Munchor on April 30, 2011, 04:54:56 am
I've been working quite hard at this, I have no screenshot for now, but as soon as I finish the more accurate pixel-perfect collision, I'll upload a new version.
Title: Re: Mission Copter
Post by: yunhua98 on May 01, 2011, 06:44:29 pm
sounds good!  It would make it really challenging if you added physics to the game though.  ;)

Also, I love the obstacles.  ;)
Title: Re: Mission Copter
Post by: Munchor on May 02, 2011, 07:44:31 am
sounds good!  It would make it really challenging if you added physics to the game though.  ;)

Also, I love the obstacles.  ;)

What do you mean with Physics? :S
Title: Re: Mission Copter
Post by: yunhua98 on May 02, 2011, 09:36:49 pm
when you press up or fall you accelerate.
Title: Re: Mission Copter
Post by: ralphdspam on May 02, 2011, 09:40:06 pm
Looks really nice!  I really like how the pixelated walls look. :)
Title: Re: Mission Copter
Post by: Munchor on May 03, 2011, 02:59:15 am
when you press up or fall you accelerate.

Just that physics is gravity, collision, acceleration, etc. I have some physics, I'll try to make gravity and movement better by implementing acceleration, but that's pretty tricky ;)
Title: Re: Mission Copter
Post by: Munchor on May 26, 2011, 02:59:29 am
I tried adding acceleration to this, and here's my code:

Code: [Select]
.COPTER

[1F04CEB7C7310E1F->Pic1
[0E04CEB7C7310E1F->Pic2
Lbl 1
Fix 5
DiagnosticOff

Lbl 0
ClrDraw
0->X->S->A->B
5632->Y
100->R

Repeat getKey(15)

.If (X=88) or (X=89) or (Y=62) or (Y=63) or (Y=65532) or (Y=65531) or (pxl-Test(X-1,Y+2)) or (pxl-Test(X-1,Y+3)) or (pxl-Test(X-1,Y+4)) or (pxl-Test(X,Y+4)) or (pxl-Test(X,Y+5)) or (pxl-Test(X+1,Y+1)) or (pxl-Test(X+1,Y+6)) or (pxl-Test(X+2,Y)) or (pxl-Test(X+2,Y+7)) or (pxl-Test(X+3,Y+8)) or (pxl-Test(X+4,Y-1)) or (pxl-Test(X+4,Y+8)) or (pxl-Test(X+5,Y)) or (pxl-Test(X+5,Y+8)) or (pxl-Test(X+6,Y)) or (pxl-Test(X+6,Y+8)) or (pxl-Test(X+7,Y+8)) or (pxl-Test(X+8,Y+3)) or (pxl-Test(X+8,Y+4)) or (pxl-Test(X+8,Y+5)) or (pxl-Test(X+8,Y+7))
.  sub(GO
.  Goto 0
.End

.MOVEMENTS
If getKey(4) and (Y>1)
  B-10->B
End
If getKey(2)
  A-8->A
End
If getKey(3)
  A+8->A
End
If getKey(1)
  B+2->B
End

If rand^80=1
  R-1->R
End

If rand^R=1 and (S>30)
  rand^45+10->Z
  ref(88,Z,7,15
End

Fix 3
Text(0,0,S>Dec
Fix 2

.SCORE
S+1->S

.GRAVITY
B+2->B

.ANIMATION
!If S^10
  Pic1->O
Else
  Pic2->O
End

Horizontal -
Horizontal -
Horizontal -

ref(92,0,3,64
rref(92,rand^5+8,3,rand^5+50

X+A->X
Y+B->Y

Pt-On(X/256,Y/256,O)^^r
DispGraph^^r
ClrDraw^^r

End
Goto 0

Lbl GO
Fix 1
Text(20,28,"GAME OVER
Fix 0
Repeat getKey
DispGraph
End
Pause 3000
Return

It doesn't look so well :(

You can download the source here (http://dl.dropbox.com/u/19899464/HELISRC.8xp).
Title: Re: Mission Copter
Post by: DJ Omnimaga on May 26, 2011, 03:00:43 am
Sorry to hear. Is it because it doesn't work or is it due to not making the gameplay good? Sometimes physics can make some game extremly hard.
Title: Re: Mission Copter
Post by: Munchor on May 26, 2011, 09:49:20 am
Sorry to hear. Is it because it doesn't work or is it due to not making the gameplay good? Sometimes physics can make some game extremly hard.

Yeah it makes the game too hard, but it works :)