SHMUP-DEV

RAPID PROTOTYPE SESSIONS => Session 14 => Topic started by: CaptainJustice on September 01, 2009, 11:49:45 PM



Title: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 01, 2009, 11:49:45 PM
I have an idea or two, and I'm going to give it a shot. My C++ skills are nearly non existant, but that's okay. Here we GOOO!

FIRST EDITION: http://www.megaupload.com/?d=7HNHUCKI
   You'll need this (http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en#QuickInfoContainer) to run it.


Title: Re: Captain Justice's Entry -hopefully-
Post by: moosa on September 02, 2009, 12:09:58 AM
Mine are non-existent. x_x
Whoo-hooo!


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 02, 2009, 12:27:32 AM
Good luck!

I tried doing an entry when I pretty much had no idea what I was doing in C++.(you can go ahead and take a gander to Leech, Session 5 I think.)

Didn't go so well.... Sadly.  :-[


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 02, 2009, 07:35:31 PM
Well, I more or less know what I'm doing, I just don't know what I should be typing. So I'll have like 10 tutorials handy, etc.

Oh, and I have to learn what vectors are, because apparently that's ten important in shootemups. Well, how to use them. (I've used a vector, just not the code equivalent.)


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 02, 2009, 09:09:07 PM
Try not to be confused with vector-art. :P
Although(I could only guess) vector-art is based off of vectors in programming.

http://cppreference.com/wiki/stl/vector/start
Here is a great reference list of available member functions for vectors.

:)


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 02, 2009, 10:16:35 PM
That's a pretty ridiculous thing to get confused about. Vectors are like a point with a direction and magnitude. 0: Math etc. Edit: Clearly, C++ vectors have NOTHING to do with that. Hohoho, I meant STL.

Er, and thanks for the link, but it doesn't look like it'd be much help to me.

oh man, I'm such a jerk. :C


Title: Re: Captain Justice's Entry -hopefully-
Post by: moosa on September 02, 2009, 10:20:21 PM
Haha. Vectors can get plenty more complicated, but straight lines are certainly enough for a shmup.


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 02, 2009, 10:46:13 PM
That's a pretty ridiculous thing to get confused about. Vectors are like a point with a direction and magnitude. 0: Math etc. Edit: Clearly, C++ vectors have NOTHING to do with that. Hohoho, I meant STL.

Er, and thanks for the link, but it doesn't look like it'd be much help to me.

oh man, I'm such a jerk. :C

Actually, I was referring to that it might be possible that vector-art systems use the vector class to store the point values, and etc.

A great way to learn about vectors is to check out Motorherp's bullet managing tutorial.(in the tutorial section)
That's how I learned, along with a little explanation in my C++ book on what vectors were.


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 03, 2009, 02:12:34 AM
Hum, I probably will look through that tutorial one more time. C:

Edit: Okay so my current idea is that there's a boss that pews a full bullets now and then, and the bullets wrap around from the bottom of the screen to top. The only way to get rid of them is to do some SWEET GRAZING.

Naturally, the bullets will have to be positioned in fancy patterns so that there can be a COMBO / SCREENCLEAR mechanic.


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 03, 2009, 02:51:05 AM
So wait, the way to cancel a bullet is for the bullet to graze against you?


Title: Re: Captain Justice's Entry -hopefully-
Post by: kdmiller3 on September 03, 2009, 03:35:48 PM
So wait, the way to cancel a bullet is for the bullet to graze against you?

Sure sounds like it.


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 03, 2009, 04:45:42 PM
So wait, the way to cancel a bullet is for the bullet to graze against you?

Sure sounds like it.

This will be an interesting entry, then!  :D


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 03, 2009, 07:46:03 PM
The ship will be shaped somewhat like this:

  :)
/    \

You'll have to graze it with the little winglets at the bottom. that way there's no stupid-invulnerability-bug/method.


Title: Re: Captain Justice's Entry -hopefully-
Post by: jakman4242 on September 03, 2009, 08:15:00 PM
Very interesting!

I'm looking forward to playing this. :D


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 05, 2009, 02:13:30 AM
I don't like it when shootemups have a shoot-button that just needs to be held down the whole time. There should either not be shooting by the player, or it should be strategic. (Think rRootage. Especially the ika portion. It's kind of silly having the shoot button.)

So I was thinking that in mine, shooting would expand your hit box a bit, making it more difficult to graze. I might do something with the graphic to show the guns popping out or somesuch.


Title: Re: Captain Justice's Entry -hopefully-
Post by: moosa on September 05, 2009, 03:53:10 AM
How about something like reducing the winglet size rather than increasing the size of the hitbox? That just sounds safer to me.


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 05, 2009, 02:26:04 PM
And then, there should be two methods of achieving VICTORY.

1. Shoot ze enemies. (Edit: Enemy*)
2. Something related to canceling bullets.

Maybe canceling bullets charges a meter, and at a certain point, you can just DETONATE the enemy with your manliness.

It'd be a rRootage-eqsue boss-based system. :0


Title: Re: Captain Justice's Entry -hopefully-
Post by: moosa on September 05, 2009, 07:38:06 PM
LOL


Title: Re: Captain Justice's Entry -hopefully-
Post by: CaptainJustice on September 05, 2009, 08:17:01 PM
Okay! I did a lot of work today.

I've almost got the basic shootemup structure going, and drew the player's ship.


(http://www.grabup.com/uploads/10e457b7f120.png)
There's the ship, cruisin'.

(http://img199.imageshack.us/img199/5174/ultrapew2.png)
When you hit spacebar (or whatever I change it to) it UNLEASHES A TORRENT OF GREEN DEATH.
NOTE THE LITTLE GUN THINGS THAT APPEAR OUT OF NOWHERE. Your ship OBVIOUSLY can't graze as well as before!

When you stop shooting, there's a little cooldown before your graze-size gets big again. (The guns stay there for a bit, etc.)

Okay, and I had started this file a while ago (the last time I wanted to make a shmup) and hadn't done anything with it. HOWEVER, I HAD set the window's name to "ULTRA PEW". I don't know WHAT gave me that idea, but it is AWESOME.

And the ship/background are animated, I just took some unfortunate screenshots.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 05, 2009, 09:43:34 PM
I concur on "Ultra Pew."


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 06, 2009, 12:49:04 AM
How about some Rck Dts, capitalization, and aberrant punctuation?  BR*PW


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 06, 2009, 01:00:34 AM
Eh. I like "Ultra Pew."


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 06, 2009, 01:11:06 AM
As do I, really.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: jakman4242 on September 06, 2009, 02:24:09 AM
Yep, it's a pretty nice name. Kind of pokes fun at cheesy MMO names~


I'm still at loss as to what I'm going to name my game.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 06, 2009, 02:58:46 AM
We should all name them Ultra Pew, just for laughs when the poll comes around.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 06, 2009, 03:05:38 AM
Heh.  I like that.  ;D


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: jakman4242 on September 06, 2009, 03:10:28 AM
I'd be for it. :P


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 06, 2009, 03:44:36 AM
Wop.
(http://img197.imageshack.us/img197/1039/ultrapew3.png)
Added a boss (named Jones, if you look at the little bit of code at the bottom.)
Apparently I have a secret talent for pixelly spaceships.

Uh, the boss can shoot straight down, 30 degrees from vertical, 45, and 60. The bullets bounce off the sides. (For fun.)

No collisions yet.

Changed the player's bullet.

Oh, and for some reason, I can't have individual animation frames for each bullet. liike

Code:
&spriteclippingthing[iterator->frame]

gives me an error. What am I doing wrong here? all the other iterator->ints seem to work.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 06, 2009, 04:14:24 AM
Apparently I have a secret talent for pixelly spaceships.

Apparently. O_o
Nice job.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: jakman4242 on September 06, 2009, 04:18:43 AM
*gasp*

Are you using Dev-C++ as an IDE?


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 07, 2009, 01:06:28 AM
Okay, something's gone horrible wrong with the collisions system, and somehow it's started messing up -everything else.-

I think I'm going to do some kind of roll-back and do a simpler/less economic method instead of continue messing with this indefinitely.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 07, 2009, 01:37:36 AM
Bummer.  :(

I use Box2D for my own project since I wasn't interested in writing my own collision and dynamics system.  It's massive overkill for a shmup, but well-tested and reasonably fast.  Maybe it'll work for you too.  The stable release is here (http://sourceforge.net/projects/box2d/), and the latest version is on Google Code here (http://code.google.com/p/box2d/source/checkout).  The API changed a lot recently, so you'll save yourself a lot of trouble in the future if you go with the latter.

Also, are you using a revision control system?  If not, I strongly recommend something like TortoiseSVN (http://tortoisesvn.tigris.org/).  It totally changed the way I work on personal projects.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 07, 2009, 02:47:49 AM
What does TSVN do? All I've used it for is Garry's Mod.

Also: I'm getting somewhere on an exciting home-made system for collisions.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 07, 2009, 03:28:53 AM
What does TSVN do? All I've used it for is Garry's Mod.
TortoiseSVN is a Subversion client that integrates into the Windows Explorer shell.  Wikipedia explains revision control (http://"http://en.wikipedia.org/wiki/Revision_control") pretty well, but the basic idea is that it keeps previous versions of files.  It's one of those things that's hard to figure out why you need it until you've used it, and then you can't figure out how you ever worked without it.  ;D

Also: I'm getting somewhere on an exciting home-made system for collisions.
Nice!  What did you end up doing?


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 07, 2009, 04:18:01 AM
So far things are looking good. I'm using my own sort of minimum-time-until-collision method.

My favorite part is that until I need to debug something else, it says "IT'S CLOBBERIN' TIME!!!!!!!!" in the log whenever a collision is possible.

So

Quote
Adding Enemy bullet from new. 87 110 0
Adding Enemy bullet from new. 125 110 1
Adding Enemy bullet from new. 87 110 2
Adding Enemy bullet from new. 125 110 3
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 24 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 24 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 25 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 25 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 26 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 26 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 27 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 27 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 28 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 28 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 29 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 29 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 29 2
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 29 3
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 30 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 30 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 30 2
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 30 3
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 31 0
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
24 31 1
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 31 2
IT'S CLOBBERIN' TIME !!!!!!!!!!!!!!!
29 31 3

etc.

and look how classy this is:
(http://img33.imageshack.us/img33/1344/ultrapew5.png)
added it a while ago.

Edit: It appears these pictures get shrunken and blurred, etc., because I'm posting them and they're too big.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 07, 2009, 10:46:52 PM
Okay. I've got the collision detection working on the player. I also added a little visual effect thing to the wings.
(http://img181.imageshack.us/img181/1359/venom2.jpg)(http://img38.imageshack.us/img38/2713/venom1.jpg)

Also, when the bullets hit the wings and disappear, the outline goes solid.
(http://img36.imageshack.us/img36/7743/venom0.jpg)(http://img3.imageshack.us/img3/5155/venom3x.jpg)

Cool.

Next: I'm going to make it so you can -die-. After that, collisions with the boss. After that, we'll see.

Coming soon?
(http://img178.imageshack.us/img178/6171/99823354.png)


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 08, 2009, 12:36:44 AM
Winggg Beeeeeeeeeeeeeeeeeeeammmmmmmmm!

(you should record that as a sound effect)


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 08, 2009, 01:09:37 AM
Winggg Beeeeeeeeeeeeeeeeeeeammmmmmmmm!

(you should record that as a sound effect)

:laugh:

I second that.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: jakman4242 on September 08, 2009, 02:06:01 AM
Winggg Beeeeeeeeeeeeeeeeeeeammmmmmmmm!

(you should record that as a sound effect)

:laugh:

I second that.


Thirded'

With the addition of suggesting it be a cheesy Japanese phonetic.

Waigu Bemu!


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 12, 2009, 04:47:26 AM
Okay, updated. You can now get shot and sploded (it happens to me with frustrating unrarity). The boss has a health meter, it is on the right, as the red portion of the graph that goes down. Also, when you eat a bullet, the blue meter, displayed right next to/in between the healthmeter, goes up! I'm planning to put the Wing Beamu thing as an ability unlocked when you fill the meter or something.

There were also various tweaks, such as colored bullets and stuff like that.

(http://img6.imageshack.us/img6/6826/venom4k.th.jpg) (http://img6.imageshack.us/img6/6826/venom4k.jpg/)

Note: All the meters appear purple, because of my bad design.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 12, 2009, 05:51:24 AM
My gosh you make me giggle.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 13, 2009, 12:11:17 AM
Alright, things are more or less done. Post any comments/suggestions/bugs.

http://www.megaupload.com/?d=7HNHUCKI

Oh, you need this thing.
http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en#QuickInfoContainer


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kemical on September 13, 2009, 12:16:22 AM
*edit*-- megaupload works


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 13, 2009, 12:25:29 AM
Really? Hang on, I'll swap.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: Null1024 on September 13, 2009, 12:50:51 AM
Just click Regular Download. No signup here.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 13, 2009, 12:53:29 AM
Same here.

I just played it, and it was quite fun.  "Delicious Outrage" indeed!  ;D


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 13, 2009, 12:57:53 AM
My favorite is INCREDIBLE FEAST!!


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 13, 2009, 02:36:55 AM
Coloriffic!

I saw that in the data files, but never achieved it in-game.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: Null1024 on September 13, 2009, 03:30:24 AM
It refuses to run for me, despite having installed that package you told us, saying "This application has failed to start because its side-by-side configuration is incorrect", and tells me to check the system logs. The logs say "Activation context generation failed for "C:\Users\null1024\Desktop\UltraPew\Ultra Pew\UltraPew.exe". Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found.".


I'm on Vista 32bit, BTW.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 13, 2009, 03:41:55 AM
Well lets see. Googling suggests something to do with AVG. Do you use AVG? From here (http://forums.techguy.org/windows-vista-7/613262-solved-failed-because-its-side.html).

I'm also on 32 bit Vista.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on September 13, 2009, 04:01:46 AM
(http://i40.photobucket.com/albums/e241/Moosa17/error-1.jpg)

I already downloaded and installed the prereq.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: kdmiller3 on September 13, 2009, 04:19:55 AM
Dependent Assembly Microsoft.VC90.DebugCRT
processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"
type="win32"
version="9.0.21022.8"

Looks like it's compiled with the debug version of the C runtime library.  It worked for me because I have Visual C++ 2008 Express installed, but the solution would be a build compiled with the release C runtime library.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: Korenn on September 13, 2009, 08:34:16 AM
you distributed a debug build? tsk tsk :P

can't give you an opinion yet, I'll test it when my entry is uploaded.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 13, 2009, 06:11:38 PM
Oh. Well now I know. B:

All the links are updated.

http://www.megaupload.com/?d=7HNHUCKI


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: Korenn on September 15, 2009, 08:10:46 AM
wow, apparently I really suck at grazing :P I didn't manage to shoot the ultra pew unfortunately

I love the geeky comments though ;D


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on September 15, 2009, 07:20:50 PM
Um, it's easier if you stop shooting for a bit. The little pew-pew-guns on the side make your graze-area smaller.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: CaptainJustice on October 12, 2009, 03:00:06 AM
Okay, something's gone horrible wrong with the collisions system, and somehow it's started messing up -everything else.-

I think I'm going to do some kind of roll-back and do a simpler/less economic method instead of continue messing with this indefinitely.

OH MAN, REREADING, I KNOW WHAT MADE IT GO WRONG.

In, say, bulletmanager::bulletmanager();, I had each variable redefined. And that makes things die.


Title: Re: Captain Justice's Entry [Ultra Pew]
Post by: moosa on October 22, 2009, 01:56:19 AM
Sweet.