QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[release] Invaders.

This is a discussion on [release] Invaders. within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Well, hello there, this is my 1st post! So, there: http://rapidshare.com/files/68964243/INV.rar.html is a little game that i coded myself. That's ...

Reply
 
LinkBack Thread Tools
Old 11-11-2007, 06:20 AM   #1
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default [release] Invaders.

Well, hello there, this is my 1st post!

So, there:
http://rapidshare.com/files/68964243/INV.rar.html
is a little game that i coded myself.
That's the galaga'ish game, in which your only objective is to shoot enemy ships.
The controls are simple, X shoots, left/right moves the ship, select opens pause menu.
As for now, the game is playable, has no known to me bugs (if you find any errors, please tell me immediately!), and features a hiscore and save/load system.
The game was coded in c++, using Brunni's OSLib.
I'm going to add some new features in the future, like special power-ups and so forth...
So, how do you like it? Please let me know
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 06:58 AM   #2
Banned for LIFE
 
Join Date: Oct 2006
Location: East London, England
Posts: 2
Trader Feedback: 0
Default

Very nice fist post. Welcome to QJ.

For new homebrew screenshots are always appreciated.
eldiablov is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 07:19 AM   #3
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default

Screenshot... I knew i forgot something

Last edited by Netaro; 11-11-2007 at 07:34 AM..
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 07:24 AM   #4
Banned for LIFE
 
Join Date: Oct 2006
Location: East London, England
Posts: 2
Trader Feedback: 0
Default

For a first game thats very nice. I might give it a try later on.
eldiablov is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 07:29 AM   #5
Enter Custom Title
 
Join Date: Feb 2006
Location: National Front Disco
Posts: 13,063
Trader Feedback: 0
Default

I'm gonna check this out, thanks.
Moose is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 07:30 AM   #6
Banned for LIFE
 
Join Date: Oct 2006
Location: East London, England
Posts: 2
Trader Feedback: 0
Default

As a hint you can wrap your screenshot in image tags ...
eldiablov is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 10:14 AM   #7
 
ZereoX's Avatar
 
Join Date: Jan 2006
Posts: 871
Trader Feedback: 0
Default

This really addictive I play for like 45 min non stop... A bit hard to see the bullets but overall great first game.
__________________
Free Prizes at [url=http://www.prizerebel.com/index.php?r=189687]Prizerebel[/url] Join us!
I already got [b]11[/b] Gifts. Ask me for details or proof.
ZereoX is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 10:19 AM   #8
 
headlesslizard's Avatar
 
Join Date: Mar 2007
Location: UK
Posts: 1,389
Trader Feedback: 0
Default

Nice! The background seemed out of place though.
__________________
[FONT="Arial"][B]PSN: headlesslizard[/B][/FONT]
headlesslizard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 12:06 PM   #9
Banned from QJ for LIFE
 
Join Date: Jul 2006
Posts: 1,558
Trader Feedback: 0
Default

someone plz up it to megaupload i hate rapidshare ( or yousendit thats better)
Mraellis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-11-2007, 12:17 PM   #10
 
Sonoe's Avatar
 
Join Date: Dec 2006
Location: You wont know
Posts: 428
Trader Feedback: 0
Default

Yeh welcome nice youll settle easy as developing so enjoy the forums well be waiting for more ideas or updates from you
Sonoe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2007, 10:28 AM   #11
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default

Thank you for all the comments

I've started writing the power-ups, but thanks to the "lack of time", i doubt it will be ready soon, but i'll try to make it by next sunday.
And by the way, anybody have some "health bar" code snippet? Something like those in rpg's games, when we have three variables (actual hp, max hp, width of the bar), and we fill the bar in according to these? I've tried writing it by myself, but it wasn't working correctly, so i deleted it.
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2007, 10:31 AM   #12
 
ghostENVY's Avatar
 
Join Date: Jul 2005
Location: California
Posts: 2,408
Trader Feedback: 0
Default

thanks for your contribution
__________________
"The True Master Paralyzes His Opponent Leaving Him Vulnerable to Attack"
M.Shinoda
V.3.52 M33
[B][FONT="Times New Roman"]Thanks Deturb For Premium.[/FONT][/B]
[IMG]http://i118.photobucket.com/albums/o106/ghostENVY/Untitled-2.jpg[/IMG]
ghostENVY is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2007, 10:44 AM   #13
Ænima
 
Judas's Avatar
 
Join Date: Sep 2007
Posts: 587
Trader Feedback: 0
Default

Code:
void draw_health(int hp,int maxhp,int x,int y) {
	float width = ceil(100 * (hp/maxhp));
	fillScreenRect(red,x,y,width,20);
}
There's a small snippet of a health code. It draws a health bar based on the ratio of hp/maxhp (percentage of health). The max width is 100 pixels. So if the maxhp is 50 and hp is 25, it'll draw a bar 50 pixels wide (50%).
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.

Last edited by Judas; 11-19-2007 at 04:24 AM..
Judas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-18-2007, 10:04 PM   #14

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by Judas
Code:
void draw_health(int hp,int maxhp,int x,int y) {
	int width = 100 * ceil(hp/maxhp);
	fillScreenRect(red,x,y,width,20);
}
There's a small snippet of a health code. It draws a health bar based on the ratio of hp/maxhp (percentage of health). The max width is 100 pixels. So if the maxhp is 50 and hp is 25, it'll draw a bar 50 pixels wide (50%).
Hmm.. since hp and maxhp are both integers, when you divide them, wouldnt it return the floor of the floating point result? Causing ceil() to be useless since it would return the same number..
I don't know if this is true in C++ though, I know it is in java..

Wait a minute, if hp is 25 and maxhp is 50, even if it worked the way you intended, ceil would return 1 (25/50 = .5), causing width to be 100 * 1..

Meh I'm lost.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-19-2007, 04:20 AM   #15
Ænima
 
Judas's Avatar
 
Join Date: Sep 2007
Posts: 587
Trader Feedback: 0
Default

Quote:
Originally Posted by youresam
Hmm.. since hp and maxhp are both integers, when you divide them, wouldnt it return the floor of the floating point result? Causing ceil() to be useless since it would return the same number..
I don't know if this is true in C++ though, I know it is in java..

Wait a minute, if hp is 25 and maxhp is 50, even if it worked the way you intended, ceil would return 1 (25/50 = .5), causing width to be 100 * 1..

Meh I'm lost.
You're right, it's got to be a float. Thanks for pointing that out.

EDIT: Think I got it right. I know I haven't done much programing lately, but that was kind of retarded of me.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG]

Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs.
Judas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-19-2007, 01:38 PM   #16

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Still though, I think int divided by int returns int, no matter what..
So like, making the first two params float would work.

Then again, I could be wrong. I'm basing this off of Java.
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-19-2007, 02:04 PM   #17

Developer
 
Join Date: Nov 2005
Posts: 445
Trader Feedback: 0
Default

You are right, you don't need a float however, you could just do this:
Code:
void draw_health(int hp,int maxhp,int x,int y) {
	int width = 100 * hp / maxhp;
	fillScreenRect(red,x,y,width,20);
}
Then thanks to BEDMAS, the hp will be multiplied first, so your number will end up in the correct bounds.
danzel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-24-2007, 02:21 AM   #18
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default

Well, i;he just got new pc with vista, and of course there are some problems...
So, i've made everything under dev-cpp when on XP, but because dev isn't working on vista, i've installed Visual studio .net 2003. And so, how do i set that ide to make eboots?
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-24-2007, 02:31 AM   #19
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

try this:

link
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-01-2007, 05:38 PM   #20
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default

Thank you, BigSanFrey, it helped a lot

And so, i wrote some more, and thus the 1.1 version of Invaders is compiled.
Changelog:
Some changes in menus.
PowerUP's were added:
- HPplus, which restores your life by 1, or gives you a +1 total life when hp is full.
- Triple bullets, pretty self explanatory
- Powerplus, with every collected, bullets deal more damage.
4 randomized backgrounds, all thanks to Google search engine.
Each new wave of enemies is stronger, so they take more hits to be killed but also yield more points to the score.

Known bugs:
VERY infrequent crashes. I was able to play for whole hour without any problem, sometimes it just comes quick. In all cases the Triple bullet was on, but upon further inspection of code nothing suspicious was found
Also, previous savestate isn't compatible .

Also, Source code distributed under GPL is included in .rar. Please, if you don't mind, check it and tell me, what should i do with it, what improvements could me made.

So, nice time playing it

http://rapidshare.com/files/73679971/INV_1.1.rar.html
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-02-2007, 01:06 AM   #21
 
BigSanFrey's Avatar
 
My Mood: Amused
Join Date: Feb 2007
Location: Melbourne, Australia
Posts: 1,773
Trader Feedback: 0
Default

ooh, i might try this now... sounds pretty good!
__________________
[B][FONT="Verdana"]WHA!?[/FONT][/B]
BigSanFrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-02-2007, 09:13 AM   #22
 
andyauff's Avatar
 
Join Date: Jan 2007
Location: U.S.
Posts: 405
Trader Feedback: 0
Default

Looks good, nice work!
andyauff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-02-2007, 06:31 PM   #23

lol
 
Anti-QuickJay's Avatar
 
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
Default

This is a great game for a first release.
Good job!
Anti-QuickJay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-02-2007, 07:08 PM   #24
 
Join Date: Jul 2006
Location: NorCal
Posts: 24,900
Trader Feedback: 0
Default

Mirror.

And like everyone else, great job, especially on a first release. It's nice not to have button testers
__________________
If you ever need me, you can contact me at [URL="**********.net"]**********.net.[/URL]
Adiuvo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-04-2007, 01:07 PM   #25
 
Join Date: Nov 2007
Posts: 29
Trader Feedback: 0
Default

So, thank you all for these nice comments, so soul-lifting .
But, what do you think about the source code? I'm thinking about somewhat bigger project, but i'd like to know what do you think about the quality of my c language. What should i change, what should i rewrite, which parts suck and which doesn't. I'm still learning, so any info would be very, very appreciated
Netaro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-04-2007, 05:50 PM   #26
 
Join Date: Jan 2007
Location: Nova Scotia, Canada
Posts: 702
Trader Feedback: 0
Default

Great first game, man, keep it up!!!
Welcome to Qj
__________________
[B]pie[/B]
HippyG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
invaders , release

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:54 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us