![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
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
|
|
|
|
|
|
|
#7 |
![]() |
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. |
|
|
|
|
|
#11 |
|
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. |
|
|
|
|
|
|
#12 |
![]() |
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] |
|
|
|
|
|
#13 |
![]() Ænima
|
Code:
void draw_health(int hp,int maxhp,int x,int y) {
float width = ceil(100 * (hp/maxhp));
fillScreenRect(red,x,y,width,20);
}
__________________
[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.. |
|
|
|
|
|
#14 | |
![]() ![]() total-Z
|
Quote:
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 |
|
|
|
|
|
|
#15 | |
![]() Ænima
|
Quote:
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. |
|
|
|
|
|
|
#16 |
![]() ![]() total-Z
|
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 |
|
|
|
|
|
#17 |
![]() ![]() Developer
|
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);
}
|
|
|
|
|
|
#18 |
|
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? |
|
|
|
|
|
|
#20 |
|
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 |
|
|
|
|
|
|
#25 |
|
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
|
|
|
|
|
![]() |
| Tags |
| invaders , release |
| Thread Tools | |
|
|