Author Topic: RoboGun: My first big axe game  (Read 24726 times)

0 Members and 1 Guest are viewing this topic.

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #15 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

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #16 on: October 30, 2011, 09:56:59 pm »
Use the A+pic without using the for?

Offline chattahippie

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 358
  • Rating: +27/-0
  • Super Member! :D
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #17 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

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #18 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.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #19 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

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #20 on: October 30, 2011, 10:20:21 pm »
Now I get it. I was confused with the other one.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #21 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.
« Last Edit: November 03, 2011, 04:39:09 pm by epic7 »

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #22 on: November 03, 2011, 04:40:48 pm »
I like the screenie!
I +1ed XD

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Robo-Gun: My first big axe game
« Reply #23 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:
If you like my work: why not give me an internet?








Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Robo-Gun: My first big axe game
« Reply #24 on: November 04, 2011, 09:47:53 am »
Keoni29 + gfx = BRAIN CRUSH
I'm not a nerd but I pretend:

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #25 on: November 04, 2011, 01:02:12 pm »
Keoni29 + gfx = BRAIN CRUSH
Ans + Sound = Brain Implosion
Sig wipe!

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #26 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
« Last Edit: November 04, 2011, 09:02:22 pm by epic7 »

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Robo-Gun: My first big axe game
« Reply #27 on: November 05, 2011, 10:15:53 am »
* aeTIos lols
I'm not a nerd but I pretend:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Robo-Gun: My first big axe game
« Reply #28 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

The game included has no shell.
« Last Edit: November 05, 2011, 09:50:09 pm by epic7 »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Robo-Gun: My first big axe game
« Reply #29 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
If you like my work: why not give me an internet?