Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Need Help to develop game application using java applets  (Read 977 times)
0 Members and 1 Guest are viewing this topic.
Offline Digital.Optiplex

Senior Newbie





« Posted 2013-02-07 07:43:50 »

I am student of computer science I need to create a game application using JAVA APPLETS.

The game will be more like Crazy Machines/The Incredible Machine  but not that much detailed.

Aim of this game is to simulate a real world environment in java Applet, where user can add objects like box, ball etc and these objects behavior must be same as if they are in real like gravity, force, acceleration, friction, inertia etc

in my opinion the Interface will be divided into two sections:
   1. one section will contain the objects list where from the user will pick the object
   2. second section will be simulating the real world environment.

for example: if i grab/insert the object from list and put it into the second section of the interface and if the user place that object in air without any support it should fall to the ground. or if there is any support it should stay on top of it depends on the angle of support. if that support is inclined then object has to fall down towards inclination. You will understand what i am trying to say better if you just watch 1 min. video of Crazy Machines (link is mentioned at the end).

Kindly suggest me where to start.
Any help would be highly appreciated.
Thanks in advance.

P.S: following are the links to know more about crazy machines:
http://www.youtube.com/watch?v=vFMwCiGXVyg
http://en.wikipedia.org/wiki/Crazy_Machines
Incredible Machine
http://www.youtube.com/watch?v=kl7hT2GiO5E
http://en.wikipedia.org/wiki/The_Incredible_Machine_%28game%29



Offline KevinWorkman

JGO Wizard


Medals: 66
Projects: 11
Exp: 12 years


klaatu barada nikto


« Reply #1 - Posted 2013-02-11 16:59:17 »

I'm not really sure what your question is. What have you tried so far? Where are you stuck?

Without more information, the best I can do is suggest you start with the basic tutorials: http://docs.oracle.com/javase/tutorial/

Static Void Games - Play indie games, learn game programming, upload your own games!
Offline philfrei
« Reply #2 - Posted 2013-02-11 17:29:53 »

As Kevin says, it's hard to know what advice to give.

Have you programmed Applets before? Do you know how to set up a basic Applet? (Java Tutorials for that.)

Have you programmed animation before? Do you know how to set up a 'game loop'? Dealt with "velocity" and with "acceleration" (gravity, in this case)? This site has some game-loop demos.

Do you know how to draw shapes?

Do you know how to do collision detection?

I always seem to start with a game-loop animated bouncing ball or box. That might be a good start, then add gravity, then add more boxes & collision detection, then add the left/right functionality you describe.

"Greetings my friends! We are all interested in the future, for that is where you and I are going to spend the rest of our lives!" -- The Amazing Criswell
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline jonjava
« Reply #3 - Posted 2013-02-12 01:11:00 »

Seems to me like you're in way over your head.

However, to simulate 2D physics you're best off using a 2D physics library like the popular Box2D library for C++. Lucky for you and me, it has been ported to java by other awesome people.

Java Box2D port
http://www.jbox2d.org/

Or alternatively a simpler API wrapped up in a lib called Fizzy by Kevin Glass.
http://old.cokeandcode.com/node/1438


If you don't yet know how to draw images on the screen with java then you're best off with java beginner tutorials and learning how to program first. There's no use in trying to use a Physics library if you don't know the basics of programming.

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.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (26 views)
2014-09-07 01:11:22

Longarmx (26 views)
2014-09-07 01:10:19

mitcheeb (34 views)
2014-09-04 23:08:59
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!