Thread: GrahamJr's 2D Source Download :)

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 GrahamJr's 2D Source Download :) 
    Java Game Developer.
    Numeric's Avatar
    Join Date
    Apr 2014
    Posts
    45
    Thanks given
    1
    Thanks received
    9
    Rep Power
    5
    Hey everyone, I just thought I should release the source for my project GrahamJr's 2Dl. It would be very useful to people who are new to Java 2D game programming and who ever else is interested. Please comment if you download I also want feedback of things that are done well or could have been done better. I will be posting more game projects in this forum but for now I'm releasing this and working on the next one. PLEASE NOTE the game is not fully functional but contains all the code that is supposed to be there, also missing player sprites but this is just for learning not leeching so it doesn't matter. Someone with half a brain can make this fully working again so enjoy. Again comment and feedback would be greatly appreciated!

    Download: Download Graham.Jrs2D.rar @ UppIT

    Thanks for downloading
     

  2. Thankful users:


  3. #2  
    Donator


    Join Date
    Mar 2013
    Age
    24
    Posts
    1,767
    Thanks given
    335
    Thanks received
    386
    Rep Power
    318
    Umm, I set the project up in eclispe and I'm getting errors from the sprite cache. Theres like a dozen methods missing.
     

  4. #3  
    Java Game Developer.
    Numeric's Avatar
    Join Date
    Apr 2014
    Posts
    45
    Thanks given
    1
    Thanks received
    9
    Rep Power
    5
    The game isn't supposed to be functional it is just for learning experiences. If you wish to further explore Java2D development I suggest you leave me a PM with your skype name, thanks.
     

  5. #4  
    Donator


    Join Date
    Mar 2013
    Age
    24
    Posts
    1,767
    Thanks given
    335
    Thanks received
    386
    Rep Power
    318
    Quote Originally Posted by GrahamJr View Post
    The game isn't supposed to be functional it is just for learning experiences. If you wish to further explore Java2D development I suggest you leave me a PM with your skype name, thanks.
    Skype: paramvir1583, I'd like to learn
     

  6. #5  
    PokeFrontier Java Developer

    Pokemon's Avatar
    Join Date
    May 2011
    Posts
    2,726
    Thanks given
    495
    Thanks received
    807
    Rep Power
    1260
    Good job ill take a look at it

    Quote Originally Posted by Paramvir_P View Post
    Umm, I set the project up in eclispe and I'm getting errors from the sprite cache. Theres like a dozen methods missing.
    also missing player sprites but this is just for learning not leeching so it doesn't matter. Someone with half a brain can make this fully working again so enjoy

    Edit: The particle system could be optimized good job you might want to look into executors


    Attached image


    I love
     

  7. #6  
    Banned

    Join Date
    Apr 2012
    Posts
    803
    Thanks given
    179
    Thanks received
    125
    Rep Power
    0
    Looks really cool though man. Gj.
     

  8. #7  
    Java Game Developer.
    Numeric's Avatar
    Join Date
    Apr 2014
    Posts
    45
    Thanks given
    1
    Thanks received
    9
    Rep Power
    5
    Thanks guys keep the feedback coming
     

  9. #8  
    Registered Member
    Join Date
    May 2014
    Posts
    85
    Thanks given
    30
    Thanks received
    14
    Rep Power
    20
    Edit: After re-reading my post, it sounded rude at first. Let me start off by saying: Good job, glad to see you're contributing to the programming community.

    Now for code feedback..

    Could use some major restructuring. Also, your use of enums is questionable; you create an enum for each direction, and use it to store the keyCode. There is no need for this; create an int (currentKey), and switch on it like you would an enum. Gets rid of the useless object creation. I see you created an "activeKeyCode" int, but why have the enum?

    Don't use final unless you need to. Had me looking for anonymous classes.

    Code:
    	passwordb.append(c);
    	password = new String(passwordb);
    You should store passwords as char[]. Strings are immutable, meaning theres no way to get rid of it until GC kicks in. This leaves your password looming around in memory till clean up. If you use a char[], you can wipe the information imediately after you're done with it.

    Code:
    if (Game.GAME_STATE != 0)
    			return;
    Should be at the top of the method. It should be to first to trigger to ensure no unneccesary calls/assignments/ect.. For example:
    Code:
    Graphics2D g2 = (Graphics2D) g;
    The assignment and cast is still occuring, even if you end up returning.

    Good job for the effort. Also for allowing others to possibly learn off your work (seems rare). But, the design, as well as some of the smaller things, still needs fixing up. I'm not gonna look through the entire thing right now (on my phone, pretty tedious), but if you're ever working on a program, feel free to ask for opinions if you feel mine were helpful
     

  10. #9  
    Java Game Developer.
    Numeric's Avatar
    Join Date
    Apr 2014
    Posts
    45
    Thanks given
    1
    Thanks received
    9
    Rep Power
    5
    Thanks for the feedback, fortunately my most current framework looks nothing like this. This will be very helpful to people using this source to build from.
     

  11. #10  
    Registered Member Tx-Sec's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    520
    Thanks given
    34
    Thanks received
    15
    Rep Power
    68
    Thanks for such a beuty realease, we all gonna learn something from this
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Botnet warning! RuneCape source download!
    By I Pk Noobs I in forum Downloads
    Replies: 11
    Last Post: 09-09-2009, 11:33 AM
  2. BootyloveScape Source Download!
    By Bootylove in forum Downloads
    Replies: 14
    Last Post: 07-22-2009, 01:40 PM
  3. Josem371scape ~ Source Download..
    By Queer in forum Downloads
    Replies: 17
    Last Post: 10-11-2008, 06:16 AM
  4. Main 503 Source Downloads
    By jigar in forum Downloads
    Replies: 10
    Last Post: 09-21-2008, 03:53 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •