Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Mr. Rectangle's Adventure  (Read 2111 times)
0 Members and 1 Guest are viewing this topic.
Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Posted 2013-09-23 01:25:31 »

Hello I am a 13 year old wanna-be game developer and this is a small "game" if you want to call it that. It's in it's first build that means what I first created (keep in mind I have pretty much 0% experience in java though I have learned quite a lot so now I have like %10 experience Tongue In the .zip file will contain the executable jar file for my 1.0 Beta, all of the source code (in .java format) and  READ-ME. Please do not hate but give constructive criticism and give me recommendations or any errors you may have! Smiley ~Devin
https://www.dropbox.com/s/sigig1188r6w7bq/Mr.%20Rectangle%27s%20Adventure%20BETA%201.0.zip
UPDATE TO 1.3 CHECK MY NEXT POST ON THIS TOPIC!

Playing Minecraft and coding noobishly for half a year!
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #1 - Posted 2013-09-23 01:30:53 »

Hey! Welcome to the forums and to game programming Smiley

It looks like you messed up your link, if you edit your post there should be a button that looks like a world, click on it. It should do this :
1  
[url][/url]

Or something like that. Just insert your link in between!

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #2 - Posted 2013-09-23 01:47:01 »

Nice job!

I might suggest a few things:
1: In the README, you shouldn't be worried about if it runs on mac. This is java! It will run on pretty much everything (Even microwaves use java (no, microwaves will not use your game)). Unless you are working with a native library, but... baby steps.
2: The control seems a bit lagged.
3: Organize and clean up your code a bit. 'Keying' does not make much sense as it is your character and your key event listener. How about a 'Player' and a 'World' and a 'Keying.' It is just more organized. Trust me. Organization is key for coding. It will pay off in debugging.

Hope this helps!
Good luck on your coding endeavors!

P.S:
My formula for finding your amount of java learned:
your geuss * 0.1
You can never stop learning!  Grin (unless your guess is >= 1000%)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SHC
« Reply #3 - Posted 2013-09-23 02:34:35 »

Don't worry, it's working on my mac.


Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #4 - Posted 2013-09-24 01:36:48 »

Thanks for all of the suggestions I will keep working!

Playing Minecraft and coding noobishly for half a year!
Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #5 - Posted 2013-09-24 18:52:11 »

 I have updated the "Game" to 1.3 Grin ! Added: Clouds, Obstacles, and different colored terrain!!!
Includes Updated README, Updated Source Code and of course UPDATED GAME!
MAKE SURE YOUR COMPUTER RESOLUTION IS SET TO 1440x900 OR HIGHER!!!!!!!!!!!!!!!!!!
Link:
https://www.dropbox.com/s/mt51er1atr5zukn/Mr.%20Rectangle%27s%20Adventure%20BETA%201.3.zip
Have Fun! ~Devin


Playing Minecraft and coding noobishly for half a year!
Offline SHC
« Reply #6 - Posted 2013-09-25 04:17:32 »

The rectangle can move into the floor. See this.


Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #7 - Posted 2013-09-25 23:52:02 »

I know this until i get better with java this may be a problem Sad new update currently in development

Playing Minecraft and coding noobishly for half a year!
Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #8 - Posted 2013-09-25 23:56:21 »

By the way ill except any coding help to fix the floor glitch! Grin

Playing Minecraft and coding noobishly for half a year!
Offline SHC
« Reply #9 - Posted 2013-09-26 03:17:27 »

Your code looks like a simple GUI app, not like a game. The problems are

  • You are using layouts. A game should not use any layout managers.
  • Never make a new panel for the game's background. You are using
    Images.java
    to act as a Background.
  • In
    Keying.java
    you are creating a new point object whenever the mouse moves or clicks. You have to reuse the existing object.
  • You have a private nested class called
    thread
    inside
    Keying.java
    which appears not to be used. Also you should name classes such that their first letter should be capital.
  • You are calling
    repaint()
    in your
    paintComponent()
    method. This will become a large flaw since you have no control on the timing. It's better to use a GameLoop.
  • You are not using a proper collision detection system and you haven't had a base class for your game objects.
  • You are doing your collision detection in the
    paintComponent()
    method which causes tearing and flickering when the player moves.
  • And finally, you are using passive rendering which can drastically decrease the performance of your game. Try to use active rendering.

Be sure to fix these issues before doing any further updates for your game.

Some articles for beginners.


Hope this helps.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #10 - Posted 2013-09-26 03:17:58 »

You're checking the middle of the rectangle, whereas you should be checking the edges.

Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #11 - Posted 2013-09-26 03:41:47 »

Quote
Make sure your computer resolution is set to 1440x900 or higher!!!

What?!

Offline SHC
« Reply #12 - Posted 2013-09-26 04:13:09 »

The window size is set to 1440x900.

Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #13 - Posted 2013-09-26 08:16:27 »

Well you just lost a load of potential players.

Most common resolutions: 1366x768 and 1024x768. Why would you restrict the resolution to something so high?

I apologise if I come across as angry, but it really annoys me when a window doesn't fit on my screen.

Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #14 - Posted 2013-09-26 10:17:33 »

Very true. Allow the user to resize the window, all you'll have to do is make sure your graphics are rendered using getters for the actual window width and height. Its really pretty easy and you'll make people very happy.

Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #15 - Posted 2013-09-26 11:00:39 »

Ok i will fix it

Playing Minecraft and coding noobishly for half a year!
Offline xXCoderDevinXx

Junior Member


Medals: 1
Projects: 2
Exp: 7-9 months


Playing Minecraft noobishly for 1 year.


« Reply #16 - Posted 2013-09-27 00:01:18 »

    [qu/java/J8d_Game_Framework.html]Java GAME Programming - Game Engine & FrameWork[/url][/li]
    [/list]

    Hope this helps.
    [/quote]
    The thread is for jumping and im working on the floor glitch im trying to figure everything out!

    Playing Minecraft and coding noobishly for half a year!
    Offline opiop65

    JGO Kernel


    Medals: 154
    Projects: 7
    Exp: 3 years


    JumpButton Studios


    « Reply #17 - Posted 2013-09-27 01:29:47 »

      [qu/java/J8d_Game_Framework.html]Java GAME Programming - Game Engine & FrameWork[/url][/li]
      [/list]

      Hope this helps.
      The thread is for jumping and im working on the floor glitch im trying to figure everything out!
      [/quote]
      .... What are you even trying to say here? Again, you really should stop developing this game and learn how to do it the "right" way. The way you're doing things right will only develop bad coding habits and wont show you how to properly code a game.

      Offline xXCoderDevinXx

      Junior Member


      Medals: 1
      Projects: 2
      Exp: 7-9 months


      Playing Minecraft noobishly for 1 year.


      « Reply #18 - Posted 2013-10-08 20:20:31 »

      I am going to relearn java 2d game programming me and a couple of my friends are going to work together to create a game source code files will be available to anyone who wants to take this project over thank you!

      Playing Minecraft and coding noobishly for half a year!
      Pages: [1]
        ignore  |  Print  
       
       
      You cannot reply to this message, because it is very, very old.

       

      Add your game by posting it in the WIP section,
      or publish it in Showcase.

      The first screenshot will be displayed as a thumbnail.

      Nickropheliac (15 views)
      2014-08-31 22:59:12

      TehJavaDev (23 views)
      2014-08-28 18:26:30

      CopyableCougar4 (32 views)
      2014-08-22 19:31:30

      atombrot (41 views)
      2014-08-19 09:29:53

      Tekkerue (40 views)
      2014-08-16 06:45:27

      Tekkerue (35 views)
      2014-08-16 06:22:17

      Tekkerue (25 views)
      2014-08-16 06:20:21

      Tekkerue (37 views)
      2014-08-16 06:12:11

      Rayexar (72 views)
      2014-08-11 02:49:23

      BurntPizza (49 views)
      2014-08-09 21:09:32
      List of Learning Resources
      by Longor1996
      2014-08-16 10:40:00

      List of Learning Resources
      by SilverTiger
      2014-08-05 19:33:27

      Resources for WIP games
      by CogWheelz
      2014-08-01 16:20:17

      Resources for WIP games
      by CogWheelz
      2014-08-01 16:19:50

      List of Learning Resources
      by SilverTiger
      2014-07-31 16:29:50

      List of Learning Resources
      by SilverTiger
      2014-07-31 16:26:06

      List of Learning Resources
      by SilverTiger
      2014-07-31 11:54:12

      HotSpot Options
      by dleskov
      2014-07-08 01:59:08
      java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
      Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!