Results 1 to 11 of 11
  1. #1
    Abdullah is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Red face My First 2D Game in Java

    Hi,


    Just want to share with you guys, my first 2d game in Java and wish to hear your opinions and suggestions about the game. :)

    YouTube - My First 2D Game in Java

    thanks.
    Last edited by Abdullah; 03-09-2011 at 12:55 AM.

  2. #2
    Creativelymad is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Bravo man! I've just started using Java and I can understand the sheer difficulty it is programming something so simple. I'm going to keep up my work, and you better as well! :D

  3. #3
    Apple is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Default

    I really like what you've done with the hands, how they follow your cursor like that, if you're getting what I'm saying. Nice job.

  4. #4
    Abdullah is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default

    Creativelymad: thanks for your comment, I really appreciate it. ^^"

    Apple: off course I'm getting what you're saying ;) thanks for your comment =)
    Last edited by Abdullah; 03-09-2011 at 12:29 AM.

  5. #5
    temyong is offline Member
    Join Date
    Nov 2010
    Posts
    20
    Rep Power
    0

    Default

    nicely done. I have some questions, what component to you use in the dialog box for menu?

  6. #6
    dyelax is offline Member
    Join Date
    Oct 2010
    Posts
    41
    Rep Power
    0

    Default

    very nice, to stop the flickering of the images I'd use a double-buffer though. Tutorial here: Java Applet Tutorial - Double Buffering Example

    I'd like to know how you got the image of the gun/laser to rotate to the right angle of where you're pointing.

  7. #7
    Abdullah is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default

    temyong: Thanks for your comment. I used JWindow for box dialog of the menu.

    dyleax: Thanks for your comment and for the tutorial. About the rotation, I did it by using triangle equations(sin, cos and arctan).

  8. #8
    temyong is offline Member
    Join Date
    Nov 2010
    Posts
    20
    Rep Power
    0

    Default

    Abdullah, thanks for the answer. I am having some question 'cause I am on a game project right now. If you are using JWindow, how can you make it always on top of your main Frame like a normal dialogbox?
    Last edited by temyong; 03-22-2011 at 12:00 PM.

  9. #9
    Abdullah is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Default

    You can do it by making JWindow as an inner class inside the (dialog box) class.

  10. #10
    Join Date
    Apr 2011
    Posts
    10
    Rep Power
    0

    Default

    I agree that the gun rotation is really complicated. I thought of making something similar to this but on a larger scale and across the internet but i could never figure out how to rotate the gun with the mouse so I ended up rotating it with the keyboard. So Kudos!
    <Daniel>P.</Berry>

  11. #11
    rdjava's Avatar
    rdjava is offline Member
    Join Date
    Jan 2011
    Posts
    38
    Rep Power
    0

Similar Threads

  1. Java Game
    By thc in forum New To Java
    Replies: 6
    Last Post: 01-09-2011, 02:42 PM
  2. Java Game
    By MuslimCoder in forum New To Java
    Replies: 6
    Last Post: 11-12-2009, 11:38 AM
  3. Java 2d game
    By Mr.Beans in forum Java 2D
    Replies: 0
    Last Post: 08-05-2009, 10:27 PM
  4. java game
    By mayhewj7 in forum New To Java
    Replies: 1
    Last Post: 04-10-2009, 08:01 AM
  5. Help with my game in java
    By lenny in forum New To Java
    Replies: 1
    Last Post: 07-23-2007, 05:40 PM

Posting Permissions

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