Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Tutorial for platformer?  (Read 7341 times)
0 Members and 1 Guest are viewing this topic.
Offline lawpoop

Innocent Bystander

« Posted 2009-01-17 17:06:40 »

Hello everyone -

I've been asked to mentor a young teenager who wants to learn programming. He went to a gaming camp the past summer, but was frustrated because all they did was a kind of modding, and not really programming. He told me he wanted to learn c++, but I thought that would be too much. I think java is the best solution for where he's at ( and where I'm at ). I do PHP programming, and I'm doing my best to stay one step ahead of this kid Smiley

We've found several tutorials on Asteriod and Space Invaders-type games, and those are straightforward enough. But this kid wants to write a programming, and I want to make sure he can accomplish his goal. Can anyone recommend a tutorial for how to write a platformer, in any language? Specifically I'm wondering how you store the map of the level, and how you handle jumping and the main guy resting on a platform.

I suppose by default, the guy falls, unless there's a collision with a platform surface. That's a guess; it might give you an indication of where I'm at.

Any help is appreciated!

Offline Swattkidd7

Junior Devvie

Exp: 8 years

« Reply #1 - Posted 2009-01-18 05:41:56 »

Hmm, if you just look for a tile based game tutorial, then you can easily convert it to a platformer.

Search up the video tutorials on, they teach you how to create a 2D tile engine, so that should help you understand more about storing maps and what not. I used them to create my own tile engine and am now using it to create a platformer also.

Basically its like a 2D tile based game except, if there is no tile that you can stand on directly below your character, apply gravity to the character.

For example, the maps would look something like

0 0 0 0 0
0 0 1 1 0
1 1 1 1 1

And if the poition directly below the character is not a 1 (1 would represent a solid square, 0 would be background or w.e), move the character lower..

Sorry if the post is a bit random or confusing Huh, but if you have any questions just ask..
Offline daryy

Innocent Bystander

« Reply #2 - Posted 2009-01-18 10:21:54 »

very well Grin Shop your high quality Discount AC Parts - A/C Compressor for your Suzuki model cars at affordable prices. Order your Suzuki AC Compressor and get placed by us!Mitsubishi  parts at discount pricing.Buy Mitsubishi  OEM Parts and Mitsubishi Raider Parts and Mitsubishi  Performance Parts.Free Shipping - One Year Lower Price Guarantee on Mitsubishi  Accessories & Parts.

Online catalog with diagrams of factory OEM genuine nissan parts, accessories and performance parts from
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline purpleguitar

Junior Devvie

« Reply #3 - Posted 2009-01-18 13:08:09 »

Brackeen's book is pretty good, and it builds up a simple platformer. You might look there for ideas.
Offline fletchergames

Senior Devvie

« Reply #4 - Posted 2009-01-19 17:47:47 »

Brackeen's book is pretty good, and it builds up a simple platformer. You might look there for ideas.
The book he's talking about is called "Developing Games in Java", and I'm pretty sure you can get it cheap from if you buy it from a marketplace seller.
Offline Corvinex

Senior Devvie

Projects: 1

Work Hard, Go Pro.

« Reply #5 - Posted 2009-01-19 22:06:32 »

This is a great place to find general info on tile based games and platformers:

This is where I got my inspiration for my platformer:

One of these days i'll make a platformer tutorial. Smiley

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Pages: [1]
  ignore  |  Print  

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

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

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

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

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

nelsongames (157 views)
2018-04-24 18:14:32

ivj94 (898 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (811 views)
2018-03-24 14:43:53

Solater (175 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!