Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: epic7 on October 29, 2011, 11:02:01 pm

Title: RoboGun: My first big axe game
Post by: epic7 on October 29, 2011, 11:02:01 pm
I was going to start with a TD, but I decided to start smaller. I'm going to make my first game, called RoboGun.

I call it RoboGun because basically the player controls a robot gun, a gun that moves by its self.

I got the idea of moving objects that dont normally move on their own from Parser Padwan's game, swords.

I'll finish this game before December 1st and I'll post updates :D
Title: Re: Robo-Gun: My first big axe game
Post by: annoyingcalc on October 30, 2011, 07:35:43 pm
That is probably a good idea to start small but I still hope you make TD sometime
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 07:41:12 pm
I hope to make a TD eventually.
Title: Re: Robo-Gun: My first big axe game
Post by: annoyingcalc on October 30, 2011, 07:43:23 pm
ok good but sweet I love any game that has stuff moving that shouldnt
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 07:46:23 pm
Like annoying orange :P
Title: Re: Robo-Gun: My first big axe game
Post by: annoyingcalc on October 30, 2011, 08:01:16 pm
??? you mean he does not move
Title: Re: Robo-Gun: My first big axe game
Post by: Deep Toaster on October 30, 2011, 08:06:11 pm
What's a TD? (I'm guessing "top-down" shooter, but I'm not sure.) Good luck with your project, anyway :)
Title: Re: Robo-Gun: My first big axe game
Post by: annoyingcalc on October 30, 2011, 08:06:37 pm
tower defense
Title: Re: Robo-Gun: My first big axe game
Post by: Deep Toaster on October 30, 2011, 08:08:18 pm
Oh, I see. By the way epic7, right-clicking Google links and selecting "Copy link address" is a terrible idea, thanks to Google's incessant URL masking :(
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 08:15:17 pm
Edited and used the real url this time :P
Title: Re: Robo-Gun: My first big axe game
Post by: annoyingcalc on October 30, 2011, 08:18:24 pm
yeah google urls are long
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 09:15:57 pm
What's a TD? (I'm guessing "top-down" shooter, but I'm not sure.) Good luck with your project, anyway :)

I am doing a top down shooter. :P

Would there be a way to make a background for the level without covering the enemies and stuff? Grayscale, maybe?
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on October 30, 2011, 09:21:18 pm
Store your image to either L3 or draw sprites using Pt-On()^r (2nd, angle, 3), then use DispGraph^r.  This displays them in greyscale.
For example:
Code: [Select]
[Pic0]->Pic0  //Uses the OS Pic0 in the program
For(A,0,755)  //756 time loop
{Pic0+A}->{L3+A}   //Stores the info in the Pic to the greyscale buffer
End
DispGraph^r
Repeat getkey(15)
End
try that
Title: Re: Robo-Gun: My first big axe game
Post by: ztrumpet on October 30, 2011, 09:51:28 pm
Store your image to either L3 or draw sprites using Pt-On()^r (2nd, angle, 3), then use DispGraph^r.  This displays them in greyscale.
For example:
Code: [Select]
[Pic0]->Pic0  //Uses the OS Pic0 in the program
For(A,0,755)  //756 time loop
{Pic0+A}->{L3+A}   //Stores the info in the Pic to the greyscale buffer
End
DispGraph^r
Repeat getkey(15)
End
try that
Actually this would be much more efficient with the Copy command:
Code: [Select]
[Pic0]->Pic0
Copy(A+Pic0,A+L3,755) // Also, put constants at the end of equations for a small optimization
DispGraph^r
Repeat getkey(15)
End
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 09:51:31 pm
K. What does ^r do?

What does  A+pic do?
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on October 30, 2011, 09:55:35 pm
Store your image to either L3 or draw sprites using Pt-On()^r (2nd, angle, 3), then use DispGraph^r.  This displays them in greyscale.
For example:
Code: [Select]
[Pic0]->Pic0  //Uses the OS Pic0 in the program
For(A,0,755)  //756 time loop
{Pic0+A}->{L3+A}   //Stores the info in the Pic to the greyscale buffer
End
DispGraph^r
Repeat getkey(15)
End
try that
Actually this would be much more efficient with the Copy command:
Code: [Select]
[Pic0]->Pic0
Copy(A+Pic0,A+L3,755) // Also, put constants at the end of equations for a small optimization
DispGraph^r
Repeat getkey(15)
End
Thanks!

K. What does ^r do?

It draws to the back buffer, aka the greyscale buffer, instead of the solid black front buffer
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 09:56:59 pm
Use the A+pic without using the for?
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on October 30, 2011, 09:59:37 pm
Use the A+pic without using the for?

Use Ztrumpet's code, it will work better/faster than mine, and it does the same thing
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 10:01:32 pm
Do you have to give A a number or something, or does copy do that for you.
Title: Re: Robo-Gun: My first big axe game
Post by: ztrumpet on October 30, 2011, 10:18:34 pm
Do you have to give A a number or something, or does copy do that for you.
Whoops, I fail.  I just blindly copied and pasted without double checking what I was doing.  This will actually work:
Code: [Select]
[Pic0]->Pic0
Copy(Pic0,L3,768) // Fixed this line
DispGraph^r
Repeat getkey(15)
End
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on October 30, 2011, 10:20:21 pm
Now I get it. I was confused with the other one.
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 03, 2011, 04:37:02 pm
I'm going to take this game a little farther than I first anticipated. I'm going to make different levels and maybe even a story mode.


Here's a screenie of a primitive version of RoboGun. 1 enemy, lvl 1 gun, upgrade menu partially done, no collision detects, no background or money/score count.

I also have to figure out why a bullet randomly shoots in the start of the game.
Title: Re: Robo-Gun: My first big axe game
Post by: parserp on November 03, 2011, 04:40:48 pm
I like the screenie!
I +1ed XD
Title: Re: Robo-Gun: My first big axe game
Post by: Keoni29 on November 04, 2011, 09:21:26 am
Bullets bigger than the gun itself XD
You might want to make the gun slightly bigger. As well as the enemies. Something like this:
Title: Re: Robo-Gun: My first big axe game
Post by: aeTIos on November 04, 2011, 09:47:53 am
Keoni29 + gfx = BRAIN CRUSH
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 04, 2011, 01:02:12 pm
Keoni29 + gfx = BRAIN CRUSH
Ans + Sound = Brain Implosion
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 04, 2011, 06:16:16 pm
Bullets bigger than the gun itself XD
You might want to make the gun slightly bigger. As well as the enemies. Something like this:

I was too lazy to make anything more than an 8x8 sprite :P. That's also a lvl 0 gun, so they get increasingly bigger and better. Still no bigger than 8x8 :P

Keoni29 + gfx = BRAIN CRUSH
Ans + Sound = Brain Implosion

All I got was data type error :P
I like using : P :P
Title: Re: Robo-Gun: My first big axe game
Post by: aeTIos on November 05, 2011, 10:15:53 am
/me lols
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 05, 2011, 09:44:36 pm
If anyone could give me some suggestions, I'd appriciate it.

I need to figure out why a random bullet appears in the beginning. Also sometimes the money on the saved games sometimes changes when loading...

Do you think gameplay is too slow in the beginning?

Robogun still only has one level with basic design. Also you're invincible :P

Controls:
Left/Right/Up/Down Arrow- Move
Alpha- Look left
the-button-to-the-right-of-alpha- Look right
2nd- Shoot/Exit Upgrade menu
Sto->- Save
Enter-Go to upgrade menu
Clear- Exit
;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

The game included has no shell.
Title: Re: Robo-Gun: My first big axe game
Post by: Keoni29 on November 06, 2011, 04:12:48 am
If you save the bullets in L1 you want to have a code like this @ the beginning of your game
Code: [Select]
for(a,0,maxamountofbullets)
0->{L1+a}
End
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 06, 2011, 09:37:08 am
I think I have it all at 0... I'll go double check
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 06, 2011, 02:32:18 pm
Hey too address your random bullet problem at the beginning of the game, I am using similar stuff in my mario shotgun game, and I had the same problem with the random bullet. I think I fixed it by reordering either my getkeys or my bullet firing code itself. Its probably just an order problem. easy fix.
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 06, 2011, 05:06:30 pm
Not easy if I have to do it only my calc. Is there an editor for the computer? I can't get my calc to connect to my Mac, so I can't use its Ti-connect.

Well, my shoot getkey is simple, so Ill try just reordering that. 
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 06, 2011, 07:56:43 pm
Yeah when I was doing it on my calc it turned out I had just told it to shoot too early in the loop. And I think you could use and emulator...Ive never used one so I wouldnt know sorry.
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 06, 2011, 07:59:28 pm
Oh. I was about to make it shoot earlier :P

I was just about to check my source code. While doing so, my ram cleared just now. D:
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 06, 2011, 08:01:10 pm
Did you have it set up to back up?

And earlier might work, in my code I have the shooting getkey at the beggining then I have all the other getkeys after the display graph and pxl tests
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 06, 2011, 08:04:10 pm
Yep, didnt lose anything.

I'll just try copying the 12 lines of the shoot getkey and bring it earlier. Not now. Have too much homework :P
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 06, 2011, 08:06:48 pm
OK cool. as and example I had

:stuff
:getkey(54)
:all that shooting stuff
:Pt change
:Pxltest
:Display graph
:pt change
:all the other get key functions
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 07, 2011, 07:23:33 am
what is the key for starting the game and key for shooting bullet?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 07, 2011, 03:50:02 pm
Left arrow: new game
Right arrrow: Load game
2nd: Shoot

The version I posted is a little old. The save screws up and the upgrade menu is a little weird
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 07, 2011, 04:08:05 pm
Did you solve your random bullet problem?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 07, 2011, 06:03:23 pm
I was trying to fix some other stuff. I didnt get to it
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 07, 2011, 06:04:23 pm
what is the key for starting the game and key for shooting bullet?
If those use same button, that might be a problem. :D
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 07, 2011, 06:05:26 pm
I made sure of that. Left arrow is new game, right arrow is load game, 2nd is shoot.
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 07, 2011, 06:05:47 pm
can I see the code?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 07, 2011, 06:06:20 pm
K. Let me just run upstairs.

Edit: How much code?
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 07, 2011, 06:21:47 pm
one that controls bullet?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 07, 2011, 06:39:12 pm
I think this is everything that is relevant to the bullets

Code: [Select]
:55→S→T
:8→O
:2→I

:For(V,0,I)
:0→{V*5+L5}
:0→{V*5+L5+3}
:End

:.Main Loop
:Repeat getKey(25)
:.All the other getkeys
:If getKey(54)
:If T=S
:For(V,0,I)
:!If {V*5+L5}
:1→{V*5+L5}
:0→T
:Goto X
:End
:End
:End
:End
:Lbl X
:If R
:Pt-On(X,Y,L*8+Pic1)
:Else
:Pt-On(X,Y,FlipH(L*8+Pic1)
:End
:For(V,0,I)
:If {V*5+L5}=1
:X+4→{V*5+L5+1}
:Y+1→{V*5+L5+2}
:Pt-On({V*5+L5+1},{V*5+L5+2},Pic2
:1→{V*5+L5+3}
:2→{V*5+L5}
:R→{V*5+L5+4}
:End
:End
:For(V,0,I)
:If {V*5+L5+3}
:If {V*5+L5+4}
:{V*5+L5+1}++
:Else
:{V*5+L5+1}--
:End
:Pt-On({V*5+L5+1},{V*5+L5+2},Pic2)
:End
:End
:For(V,0,I)
:If {V*5+L5+1}=1 or {V*5+L5+1}>90
:sub(SET)
:Goto I
:Lbl SET
:0→{V*5+L5}→{V*5+L5+3}+100→{V*5+L5+1}→{V*5+L5+2}
:Return
:Lbl I
:End
:End

:.Stuff

:If T<S
:T++
:End

:. Collision below
:For(V,0,I)
:For(P,0,C)
:If {P*3+L2+2}
:If abs({V*5+L5+1}-{P*2+L1})<6
:If abs({V*5+L5+2}-{P*2+L1+1})<6
:{P*3+L2}-O→{P*3+L2}
:sub(SET)
:End
:End
:End

:. Other stuff including enemy death code

:DispGraph
:End




Works fine except for the random bullet at the beginning....

And occasional enemy invincibility...
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 07, 2011, 09:21:32 pm
Looks good:) can't wait to see it all debugged and such. do you want to see my mario shotgun game too see how I fixed my random bullet?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 08, 2011, 10:00:32 pm
Okay
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 09, 2011, 04:43:50 pm
I put the shoot in the beginning of the main loop, but it still has the random bullet. Improved the game, mostly the upgrade menu.
In the gif, you'll see that my guns begin to look demented :P
Title: Re: Robo-Gun: My first big axe game
Post by: parserp on November 09, 2011, 04:52:36 pm
:D Nice screenie!!!!
I +1ed XD
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 09, 2011, 05:19:03 pm
Here I'll post my Mario game so you can see how my bullets work.
Title: Re: Robo-Gun: My first big axe game
Post by: LincolnB on November 10, 2011, 05:21:27 pm
hm, if anyone's interested, I can post some code for a possible implementation of a rotation movement engine, something like the one in Base 671 (look in my sig)
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 10, 2011, 06:01:45 pm
actually that code be useful!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 10, 2011, 06:05:02 pm
Cool yeah.
Title: Re: Robo-Gun: My first big axe game
Post by: parserp on November 10, 2011, 07:30:20 pm
yeah that would be awesome butts! :D
Title: Re: Robo-Gun: My first big axe game
Post by: LincolnB on November 10, 2011, 10:48:07 pm
Okay, so basically you have a variable representing how much your character has rotated. I'll use F. You have two variables for position, X and Y, and two variables for direction, D and E. And you have a jump table (just a bunch of data organized in an optimized way) stored in GDB1.

Code: [Select]
.jump table goes here
Data(-3r,0r,-2r,-1r,-1r,-2r,0r,-3r,1r,-2r,2r,-1r,3r,0r,2r,1r,1r,2r,0r,3r,-1r,2r,-2r,1r)->GDB1

.vars
.facing left (0)
0->F
.start at 10,10
10->X->Y
.not moving
0->D->E

.let's get this party started
Repeat getkey(15)

.2nd moves forward
If getkey(54)
X+D->X
Y+E->Y
End

.Alpha moves backward
If getkey(48)
X-D->X
Y-E->Y
End

.turning right
If getkey(3)
F++
If F>11
0->F
End
End

.turning left
If getkey(2)
F--
If F<<0
11->F
End
End

.put the directions from the jump table into D and E
{F*2+GDB1}->D
{F*2+1+GDB1}->E

.draw the dude
ClrDraw
.who is a circle
Circle(X,Y,2)
.(a small circle)

.draw a tail
Line(X,Y,X-(D*3),Y-(E*3))

Dispgraph

End

That should work. If you want to make your own sprite table so your character isn't just a circle, you can draw some sprites and put a pointer to the start of the data in, let's say, Pic1, and you can use this:

Code: [Select]
Pt-On(X-4,Y-4,F*8+Pic1

(it's X-4,Y-4 and not X,Y because you want to center the sprite)
Title: Re: Robo-Gun: My first big axe game
Post by: hellninjas on November 10, 2011, 11:30:09 pm
Cool, like a TD on yourself!! xD
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 06:05:09 pm
I don't think I could use rotation for this project, though.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 12, 2011, 06:22:58 pm
For the random bullet, I fixed it by putting the shooting part at the beginning of the main loop, and moving my getkeys to the end of the loop after the display graph. Could I take a look at your code inside the loop? I might be able to help!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 06:45:44 pm
Ok. I'll pm you the main loop.

Robo gun is 76.429% done! :P
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 09:22:19 pm
Can anybody fix this health code?

Code: [Select]
For(P,0,C)
If abs({P*2+L1+1}-Y)<7
If abs({P*2+L1}-X)<7
E--
End
End
End
Text(40,1,"HEALTH:")
Rect(66,2,(66+(E/2)),5)
If E<1
2->N
Return
End
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 12, 2011, 09:26:04 pm
Well, Whats wrong with it? What is it doing that your don't want?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 09:33:53 pm
Usually the dying works but the rect doesn't work. Sometimes, the rect shortens then fills up again and you never die.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 12, 2011, 09:35:45 pm
Oh yeah, I remember seeing that. What is 'E' originally?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 09:40:22 pm
60
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 12, 2011, 09:42:29 pm
wow, I'm a fail, I already printed off the code so I could look it over earlier, all I had to do was look down! :P Oh well. Anyways, I'll look it over later, I'm tired now.
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 09:49:55 pm
Try:
Code: [Select]
For(P,0,C)
If {P*2+L1+1}-Y<7+({P*2+L1+1}-Y>65529)*({P*2+L1}-X<7+({P*2+L1+1}-X>65529))
E--
End
End
Text(40,-39,"HEALTH:")   //"-" is subtract, not negative
Rect(66,-64,E/2,3)   //"-" is subtract; the third/fourth arguments are how long/wide the rectangle is, not end points
If E<1
2->N
Return
End
Also, I fixed the double If because it might help your problem
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 09:54:28 pm
Why the negative y coord stuff?
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 09:55:34 pm
Because you were using the absolute value, right?  I just took that out
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 12, 2011, 10:04:56 pm
Try:
Code: [Select]
For(P,0,C)
If {P*2+L1+1}-Y<7+({P*2+L1+1}-Y>65529)*({P*2+L1}-X<7+({P*2+L1+1}-X>65529))
E--
End
End
Text(40,-39,"HEALTH:")   //"-" is subtract, not negative
Rect(66,-64,E/2,3)   //"-" is subtract; the third/fourth arguments are how long/wide the rectangle is, not end points
If E<1
2->N
Return
End
Also, I fixed the double If because it might help your problem


It doesn't work, It just makes your health go down when ever you aren't moving. :(
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:05:25 pm
.................……………Alrighty then. I didn't really see how it worked either. I wanted to check the absolute value of the difference of the coords to find the distance.  My main problem was the rect. I think I know how to fix it nowtht I know the last arguments the width not the x2
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 10:11:27 pm
Oh, I know why... let me fix... I thought I could get away with not using abs(
Code: [Select]
For(P,0,C)
If abs({P*2+L1+1}-Y<7)*abs({P*2+L1}-X<7)
E--
End
End
Text(40,-39,"HEALTH:")   //"-" is subtract, not negative
Rect(66,-64,E/2,3)   //"-" is subtract; the third/fourth arguments are how long/wide the rectangle is, not end points
If E<1
2->N
Return
End
There, try that
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:13:42 pm
Negative y coordinates still are used?

It works less now :P
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 10:18:59 pm
Yeah, it has to do with a abuse of the hl register.
For example, in Text(40,-39,"HEALTH:"), It stores 40 into hl (kinda like Ans in Ti-Basic), then subtracts 39 from hl for the y coord, which makes it 1 (so, the text is displayed at (40,1) or (40,40-39))
Hope that made sense ;D
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:20:04 pm
Oh. I used negative.  I forgot about the hl.
A few posts back you said had something to do with the abs(
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 10:26:39 pm
Oh. I used negative.  I forgot about the hl.
A few posts back you said had something to do with the abs(

I thought you were talking about something else :P
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:27:42 pm
The way it removes health seems better with the double if...
It still tends to jump back up to full and stay that way sometimes.
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 10:35:00 pm
Why? Faster?
If so, use the X If first, it has less of a chance of being true
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:36:58 pm
I figured y would :P
Trying to figure out the mystery of the WTF health bar regeneration now...


Ok, changed it. I tested it about 15 times. It screwed up once.
Title: Re: Robo-Gun: My first big axe game
Post by: chattahippie on November 12, 2011, 10:46:13 pm
Well, look for anything that is stored to E
And did the Rect() fix work?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 12, 2011, 10:54:54 pm
Rect works. I'll have to make sure nothing else is E. Im losing track of all my variables.
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 13, 2011, 08:24:58 pm
Updates:
Death screen
Animation of killing enemies
Pretty much working health bar
Levels!
Maybe other stuff that I forgot to say :P

Malfunctioning D: :
With 4 or less enemy waves:
     Health malfunctions: 6%
     Enemy invincibility: 5%
     No enemy regeneration: 5%
With 5 or more enemy waves:
     Health malfunctions: 70%
     Enemy invincibility: 90% (chance of at least one being invincible per wave)
     No enemy regeneration: ?

Usually cant find no regeneration percent with >4 since enemies are almost always invincible. D:
It suddenly changes to not working once it exceeds 4.

Screenie of new stuff including flaming death :P
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 13, 2011, 09:08:13 pm
This is gonna be SO awesome!.... er um Epic! :) can't wait to see the finished project!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 13, 2011, 09:08:58 pm
Thanks!
Title: Re: Robo-Gun: My first big axe game
Post by: mrmprog on November 13, 2011, 10:09:39 pm
Want a gun sprite?
[0000027FB8C08000]
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 13, 2011, 10:11:52 pm
Yeah. My gun sprites start to get demented :P

Cool. Ill put that in :)
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 15, 2011, 07:01:33 pm
Halp! It skips level to in my level menu. The first 3 args are the requirements to pass the level.
The only thing different about the level 2 is that it requires a certain amount of money instead of enemy kills

Code: [Select]
.A is for level
If A=1
.The first argument is the money requirement
GAME(0,6,0,4,3,1
ElseIf A=2
GAME(300,0,0,4,3,1
ElseIf A=3
(goes on with different args 'till A=8)
End
.Lotsa stuff
Lbl GAME
.Lotsa stuff
For(P,0,r5)
.Lotsa stuff
 If (r2<J) and (r1<G) and (r3<L)
.G is the amount of money the user has
A++
G-r1->G
1->N
.Level up and return
Return
End
DispGraph
End
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 17, 2011, 04:15:10 pm
Almost done :)
My main problem now is the BUGS!
I'm going to keep the max enemy count on the screen under 5 to avoid the problems there :P
The worst bug is probably the health bar suddenly going back up to the top.

I'll just try the Buttsfredskin strategy  XD
Write down the problem, think hard, find the answer :P
Title: Re: Robo-Gun: My first big axe game
Post by: Stefan Bauwens on November 19, 2011, 07:12:29 am
This looks pretty nice. Good luck with finishing it. :)
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 21, 2011, 08:19:19 pm
If bugs were gone, robogun is now pretty much done. :w00t:
I'll work out a solution and have it finished this week.
That doesn't mean I still won't update it :)

Give me a minute and I'll post it.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 21, 2011, 08:21:48 pm
looking forward to the finished product!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 21, 2011, 08:42:01 pm
Here's the latest version
Arrows to move
Alpha and the button next to it to look in a different direction
2nd to shoot
Enter for upgrades
Clear to quit
Sto-> to save

Size ~9kB
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 21, 2011, 08:43:35 pm
THANKS!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 21, 2011, 10:04:32 pm
Im making a bomb power up that will wipe all enemies off the screen including the invincible ones. The bomb is sort of an excuse for the invincible enemy bug.

They wipe all enemies out, but the kills aren't added to the amount you've killed in the level and you get no money for it.

How many should a player get for each round?
Title: Re: Robo-Gun: My first big axe game
Post by: hellninjas on November 22, 2011, 12:20:15 am
I'd say you get 3 bombs forever, when you run out, tough luck!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 07:00:48 am
I think I have identified the problem for the health bar bug. If it works, it might cure the invincibility of enemies too. 
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 03:29:53 pm
Im pretty sure it worked! Ill start playing for a while and ensure that they don't return.

Ill still keep the bombs and I might give 1 bomb per level (but not accumlating)u
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 04:54:42 pm
What happens when you have no bombs, and there are a bunch of invincible robos? I say you just have one appear randomly, just VERY rarely! like
:rand^1000
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 06:01:48 pm
I only used the invincible enemies as an excuse for the bug. Now that its, fixed, I'm not going to add the invincible robos.

Im going to keep the bombs still, 1 or 2 for a level
How many? 1 or 2?

Im also making a read me with

COOL TITLE ART!

Finished upload soon after I limit and finish bombs.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 08:19:42 pm
I still say just make it a rare random amount! that way you don't get bored with the game:P or make a shop where you can buy them along with the guns!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 08:25:42 pm
Buy enemies that cant be killed?

Anyway, Robogun is finished. Finished means done with everything I desired to put in the game.
I'll still probably update and might add more features or maybe powerups

New:
Bombs
Readme
No more enemy invincibility
No more health bar malfunctions
No more level skipping

Future updates:
Powerups?
More things to buy?
Actual boundaries!

Version 1.1 attached :)
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 08:26:25 pm
NO! lol buy bombs!

and what are you compiling robogun in? my calc says error:invalid
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 08:29:32 pm
Ok. I might add buy powerups or health. Or maybe BLUE LOBSTERS. I'll copy homer's idea of making a blue lobster powerup :P
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 08:30:28 pm
My calc won't let me play it!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 08:33:18 pm
Oh. I forgot. I compiled it for Doors cs.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 08:33:55 pm
oh ok, can I have the source then? I prefer ION
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 08:35:57 pm
My mom will kill me I go back on the computer :P
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 08:36:49 pm
ok well, ill work with this. the problem is I use noshell, which doesnt run doors :(
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 08:59:00 pm
I'll upload no-shell tomorrow.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 09:02:23 pm
just compile in ion, and it'll still work! oh and I really like the gun pic at the menu! one thing though, I didn't see anything giving credit to you in the menu or the game, and also how do I upgrade my gun?
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 09:10:50 pm
Oh yeah, I need to put my name on it :P
And you got it to work?

Enter to go to upgrades and use arrows to scroll. On buys the guns, but only if you're at a high enough level.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 09:12:56 pm
yeah I downloaded doors

by the way:
game modifications suggestions:

1:when you move left you face left, when you move right you face right
2:when you buy a gun, it skips a level?
3:give yourself credit at the beginning in the menu, you did an awesome job!
Title: Re: Robo-Gun: My first big axe game
Post by: Builderboy on November 22, 2011, 09:20:13 pm
ok well, ill work with this. the problem is I use noshell, which doesnt run doors :(

In that case you should get Doors on your calc, because Doors has No-Shell functionality built into it :D
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 09:21:26 pm
I did :)
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 09:27:26 pm
It skips levels when guns are bought? Usually when you buy guns, that is the only goal of the level and once you buy them, you win.
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 09:28:54 pm
I thought the goal was to kill the robos, not get guns! AGH im lost!
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 09:30:19 pm
Read the text in the beginning of the mission and it tells you
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 22, 2011, 09:33:24 pm
AHH i see! thanks !
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 22, 2011, 10:39:37 pm
My sprite for lvl6 gun has gone missing. ... At least I have it on the computer.
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 28, 2011, 05:22:28 pm
Done!

I'll post the link once the download is approved

Screenie:
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 28, 2011, 06:09:08 pm
I'd download it, but Ti connect is being stupid! :banghead:
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 28, 2011, 06:29:43 pm
Link:

Click me! (http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=751)

And I guess it makes a topic once a download is approved.
Title: Re: Robo-Gun: My first big axe game
Post by: Yeong on November 28, 2011, 06:30:20 pm
downloading right now. ;)
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on November 28, 2011, 06:40:51 pm
Apparently, it doesn't work D:
I'll have to fix it tommorow
Title: Re: Robo-Gun: My first big axe game
Post by: saintrunner on November 28, 2011, 06:41:53 pm
I don't think they would approve of it if it didn't work
Title: Re: Robo-Gun: My first big axe game
Post by: epic7 on December 01, 2011, 04:07:48 pm
I just noticed, the official title is RoboGun, not Robo-Gun :P
I'll change that
 

I actually have a download that works now! (but only for DoorsCS)

I'm still trying to get fullrene to work, but Doors works without it.

Link:
[download being approved]