Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (797)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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 2370 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:
Incredible Machine

Offline KevinWorkman

« JGO Plugged Duke »

Medals: 288
Projects: 12
Exp: 12 years - Coding Tutorials!

« 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: - Coding Tutorials!
Happy Coding forum - Come say hello!
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.

music and music apps:
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

Or alternatively a simpler API wrapped up in a lib called Fizzy by Kevin Glass.

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  

hadezbladez (3710 views)
2018-11-16 13:46:03

hadezbladez (1323 views)
2018-11-16 13:41:33

hadezbladez (3713 views)
2018-11-16 13:35:35

hadezbladez (716 views)
2018-11-16 13:32:03

EgonOlsen (4027 views)
2018-06-10 19:43:48

EgonOlsen (4549 views)
2018-06-10 19:43:44

EgonOlsen (2709 views)
2018-06-10 19:43:20

DesertCoockie (3578 views)
2018-05-13 18:23:11

nelsongames (3725 views)
2018-04-24 18:15:36

nelsongames (4757 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!