Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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  
  side-scroller help  (Read 1960 times)
0 Members and 1 Guest are viewing this topic.
Offline Positron

Junior Newbie

« Posted 2012-02-27 03:34:58 »

I'm interested in creating a side-scroller Monster truck style game for the PC.  I want to write everything from scratch, so using the Box2d isn't an option.  I know it's a big project for a beginner, but I've always wanted to do this.

I know I'll need gravity, pixel-perfect collision, scrolling, and the use of acceleration for the vehicle. 

This will be my first real game so, I'm a bit stumped as to how it all works together.

A couple problems I see with gravity is factoring in the center of mass, to get the truck to rotate as it falls, and accelerating up ramps and such.

I was able to load the sprite/background, but it only moves one pixel at a time.

Any help will be greatly appreciated, just to get me pointed in the right direction.

Thank you... Smiley
Offline gimbal

JGO Knight

Medals: 25

« Reply #1 - Posted 2012-02-28 15:02:47 »

Since nobody is biting I'll take a shot at an answer.

And that is: learn to walk before you run. I would create a simpler game without any physics simulations first. Try a grid based Tetris clone and see if you can turn it into a full-fledged game. You'll find it is already hard enough to do something as basic as that and you'll have a million beginner questions that need answering while you implement it. From that learning experience, you'll be one step closer to doing the game of your dreams.

Also I do believe it will be quite hard to do this without any kind of guidance outside of a forum; you are not going to learn this by asking those million questions here. When I started out with hobby game development I started collecting books like a nut (which was very costly indeed... but it was in a time where I did not have direct access to the internet yet). The advantage I had was that I was using (Visual) C++ in stead of Java at the time, so most books I could buy actually matched my target language and platform. Now you are likely not going to learn game development using C++ first and then switch to Java like I did, but my point is to not disregard the vast amount of C++ based resources out there that can really teach you a great deal. You should be able to read and understand the C++ code that books or articles provide and at least apply the knowledge yourself in your Java games.
Offline 65K
« Reply #2 - Posted 2012-02-28 16:04:53 »

Depends on your focus.
If you want to learn how to implement physics, scrolling, etc., just go ahead.
If you want to finish a real game though, using stable, proven, ready-to-use libraries is your only option.

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

Junior Newbie

« Reply #3 - Posted 2012-02-28 16:42:56 »

Thank you for your reply.  I'll keep that in mind.

Don't worry, I promise I wont post a million questions...

Offline gimbal

JGO Knight

Medals: 25

« Reply #4 - Posted 2012-03-01 12:31:17 »

Thank you for your reply.  I'll keep that in mind.

Don't worry, I promise I wont post a million questions...

Its not a question of worrying about it, people on this forum love to help. Its more from the perspective that you shouldn't believe you are going to learn game development like that; but you seem to realize that Smiley
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (37 views)
2015-08-01 03:58:20

Jesse (24 views)
2015-07-29 04:35:27

Riven (44 views)
2015-07-27 16:38:00

Riven (24 views)
2015-07-27 15:35:20

Riven (27 views)
2015-07-27 12:26:13

Riven (18 views)
2015-07-27 12:23:39

BurntPizza (39 views)
2015-07-25 00:14:37

BurntPizza (48 views)
2015-07-24 22:06:39

BurntPizza (33 views)
2015-07-24 06:06:53

NoxInc (40 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!