Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 4199 times)
0 Members and 1 Guest are viewing this topic.
Offline lawpoop

Innocent Bystander





« Posted 2009-01-17 18: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 Member





« Reply #1 - Posted 2009-01-18 06: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 http://www.nickontech.com/2008/09/tile-engine-series-new-home/, 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 11: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 buyautoparts.com
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline purpleguitar

Junior Member





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

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

Senior Member





« Reply #4 - Posted 2009-01-19 18: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 Amazon.com if you buy it from a marketplace seller.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


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

This is a great place to find general info on tile based games and platformers:
http://www.tonypa.pri.ee/tbw/start.html

This is where I got my inspiration for my platformer:
http://www.harveycartel.org/metanet/tutorials.html

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  
 
 
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.

ctomni231 (33 views)
2014-07-18 06:55:21

Zero Volt (29 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (26 views)
2014-07-16 23:30:00

Cero (41 views)
2014-07-16 00:42:17

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (65 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!