The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the newest Gaming News from
QJ.NET in your email each day?




Want to learn more about the team who brings you the QJ news?

Read about them now!

 


Results 1 to 26 of 26

[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 ...

  
  1. #1
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    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 :)

  2. #2
    Banned for LIFE
    Points: 18,744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Join Date
    Oct 2006
    Location
    East London, England
    Posts
    2
    QJ Pts
    18,744
    Level
    86
    Downloads
    0
    Uploads
    0

    Default

    Very nice fist post. Welcome to QJ.

    For new homebrew screenshots are always appreciated.

  3. #3
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    0

    Default

    Screenshot... I knew i forgot something :)
    Last edited by Netaro; 11-11-2007 at 06:34 AM.

  4. #4
    Banned for LIFE
    Points: 18,744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Join Date
    Oct 2006
    Location
    East London, England
    Posts
    2
    QJ Pts
    18,744
    Level
    86
    Downloads
    0
    Uploads
    0

    Default

    For a first game thats very nice. I might give it a try later on.

  5. #5
    QJ Gamer Platinum
    Points: 66,627, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Join Date
    Feb 2006
    Location
    National Front Disco
    Posts
    13,061
    QJ Pts
    66,627
    Level
    100
    Downloads
    0
    Uploads
    0

    Default

    I'm gonna check this out, thanks.

  6. #6
    Banned for LIFE
    Points: 18,744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Join Date
    Oct 2006
    Location
    East London, England
    Posts
    2
    QJ Pts
    18,744
    Level
    86
    Downloads
    0
    Uploads
    0

    Default

    As a hint you can wrap your screenshot in image tags ...

  7. #7
    QJ Gamer Silver
    Points: 9,022, Level: 63
    Level completed: 91%, Points required for next Level: 28
    Overall activity: 0%

    Join Date
    Jan 2006
    Posts
    871
    QJ Pts
    9,022
    Level
    63
    Downloads
    0
    Uploads
    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 Prizerebel Join us!
    I already got 11 Gifts. Ask me for details or proof.

  8. #8
    QJ Gamer Silver
    Points: 6,496, Level: 52
    Level completed: 73%, Points required for next Level: 54
    Overall activity: 0%

    Join Date
    Mar 2007
    Location
    UK
    Posts
    1,389
    QJ Pts
    6,496
    Level
    52
    Downloads
    0
    Uploads
    0

    Default

    Nice! The background seemed out of place though.
    PSN: headlesslizard

  9. #9
    Banned from QJ for LIFE
    Points: 10,957, Level: 69
    Level completed: 27%, Points required for next Level: 293
    Overall activity: 0%

    Join Date
    Jul 2006
    Posts
    1,557
    QJ Pts
    10,957
    Level
    69
    Downloads
    0
    Uploads
    0

    Default

    someone plz up it to megaupload i hate rapidshare ( or yousendit thats better)

  10. #10
    QJ Gamer Blue
    Points: 4,958, Level: 45
    Level completed: 4%, Points required for next Level: 192
    Overall activity: 0%

    Join Date
    Dec 2006
    Location
    You wont know
    Posts
    428
    QJ Pts
    4,958
    Level
    45
    Downloads
    0
    Uploads
    0

    Default

    Yeh welcome nice youll settle easy as developing so enjoy the forums well be waiting for more ideas or updates from you :)

  11. #11
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    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.

  12. #12
    QJ Gamer Gold
    Points: 12,166, Level: 72
    Level completed: 29%, Points required for next Level: 284
    Overall activity: 0%

    Join Date
    Jul 2005
    Location
    California
    Posts
    2,409
    QJ Pts
    12,166
    Level
    72
    Downloads
    0
    Uploads
    0

    Default

    thanks for your contribution
    "The True Master Paralyzes His Opponent Leaving Him Vulnerable to Attack"
    M.Shinoda
    V.3.52 M33
    Thanks Deturb For Premium.
    http://i118.photobucket.com/albums/o...Untitled-2.jpg

  13. #13
    Ænima
    Points: 6,447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Join Date
    Sep 2007
    Posts
    587
    QJ Pts
    6,447
    Level
    52
    Downloads
    0
    Uploads
    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%).
    Last edited by Judas; 11-19-2007 at 03:24 AM.
    [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.

  14. #14
    Points: 24,247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Join Date
    Jul 2005
    Location
    texas
    Posts
    2,803
    QJ Pts
    24,247
    Level
    94
    Downloads
    0
    Uploads
    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

  15. #15
    Ænima
    Points: 6,447, Level: 52
    Level completed: 49%, Points required for next Level: 103
    Overall activity: 0%

    Join Date
    Sep 2007
    Posts
    587
    QJ Pts
    6,447
    Level
    52
    Downloads
    0
    Uploads
    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.

  16. #16
    Points: 24,247, Level: 94
    Level completed: 90%, Points required for next Level: 103
    Overall activity: 0%

    Join Date
    Jul 2005
    Location
    texas
    Posts
    2,803
    QJ Pts
    24,247
    Level
    94
    Downloads
    0
    Uploads
    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

  17. #17
    Developer
    Points: 8,414, Level: 61
    Level completed: 88%, Points required for next Level: 36
    Overall activity: 0%

    Join Date
    Nov 2005
    Posts
    445
    QJ Pts
    8,414
    Level
    61
    Downloads
    0
    Uploads
    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.

  18. #18
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    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?

  19. #19
    QJ Gamer Silver
    Points: 8,717, Level: 62
    Level completed: 89%, Points required for next Level: 33
    Overall activity: 0%

    Join Date
    Feb 2007
    Location
    Melbourne, Australia
    Posts
    1,773
    QJ Pts
    8,717
    Level
    62
    My Mood
    Amused
    Downloads
    0
    Uploads
    0

    Default

    try this:

    link
    WHA!?

  20. #20
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    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

  21. #21
    QJ Gamer Silver
    Points: 8,717, Level: 62
    Level completed: 89%, Points required for next Level: 33
    Overall activity: 0%

    Join Date
    Feb 2007
    Location
    Melbourne, Australia
    Posts
    1,773
    QJ Pts
    8,717
    Level
    62
    My Mood
    Amused
    Downloads
    0
    Uploads
    0

    Default

    ooh, i might try this now... sounds pretty good!
    WHA!?

  22. #22
    QJ Gamer Blue
    Points: 6,154, Level: 51
    Level completed: 2%, Points required for next Level: 196
    Overall activity: 0%

    Join Date
    Jan 2007
    Location
    U.S.
    Posts
    405
    QJ Pts
    6,154
    Level
    51
    Downloads
    0
    Uploads
    0

    Default

    Looks good, nice work!

  23. #23
    lol
    Points: 20,859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Join Date
    Aug 2006
    Location
    Whittier, CA
    Posts
    5,791
    QJ Pts
    20,859
    Level
    91
    Downloads
    0
    Uploads
    0

    Default

    This is a great game for a first release.
    Good job!

  24. #24
    QJ Gamer Platinum
    Points: 88,881, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%
    Awards:
    Frequent Poster

    Join Date
    Jul 2006
    Location
    NorCal
    Posts
    24,900
    QJ Pts
    88,881
    Level
    100
    Downloads
    0
    Uploads
    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]

  25. #25
    QJ Gamer Blue
    Points: 2,981, Level: 33
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%

    Join Date
    Nov 2007
    Posts
    29
    QJ Pts
    2,981
    Level
    33
    Downloads
    0
    Uploads
    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 :)

  26. #26
    QJ Gamer Green
    Points: 5,397, Level: 47
    Level completed: 24%, Points required for next Level: 153
    Overall activity: 0%

    Join Date
    Jan 2007
    Location
    Nova Scotia, Canada
    Posts
    702
    QJ Pts
    5,397
    Level
    47
    Downloads
    0
    Uploads
    0

    Default

    Great first game, man, keep it up!!!
    Welcome to Qj
    [B]pie[/B]


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





All times are GMT -8. The time now is 06:56 AM.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2013, Caputo Media, LLC. All Rights Reserved. Cluster C3.
Contact Us | Free Flash Games | Ad Blockers Suck! Why?