Java 2D Game Programming Platformer Tutorial - Part 1 - The Game State Manager
780.3 هزار بار بازدید -
11 سال پیش
-
IMPORTANT INFO:This is an extremely
IMPORTANT INFO:
This is an extremely old tutorial, back when I was a noob at game programming. One of the most destructive parts of this crap code is the multi-threaded key input. Swing puts all KeyEvent firings in a separate thread, so I implore everyone to look at video 9 (final - Artifact game) of this tutorial to check out the Keys class in the source code so as to put all game logic on a single thread.
This is a new tutorial series.
The game is a tile based, side-scrolling platformer.
The goal of this series is about helping you come up with ways to organize your games.
About the Background, I just forgot to mod the x and y in the update() method. Just look at the setPosition() method to fix it.
All resources are free for any use. Giving credit isn't required, but it would be cool.
source:
https://github.com/foreignguymike/leg...
Killer Game Programming in Java sample:
http://fivedots.coe.psu.ac.th/~ad/jg/
http://fivedots.coe.psu.ac.th/~ad/jg/...
Blog:
http://neetlife2.blogspot.com/
This is an extremely old tutorial, back when I was a noob at game programming. One of the most destructive parts of this crap code is the multi-threaded key input. Swing puts all KeyEvent firings in a separate thread, so I implore everyone to look at video 9 (final - Artifact game) of this tutorial to check out the Keys class in the source code so as to put all game logic on a single thread.
This is a new tutorial series.
The game is a tile based, side-scrolling platformer.
The goal of this series is about helping you come up with ways to organize your games.
About the Background, I just forgot to mod the x and y in the update() method. Just look at the setPosition() method to fix it.
All resources are free for any use. Giving credit isn't required, but it would be cool.
source:
https://github.com/foreignguymike/leg...
Killer Game Programming in Java sample:
http://fivedots.coe.psu.ac.th/~ad/jg/
http://fivedots.coe.psu.ac.th/~ad/jg/...
Blog:
http://neetlife2.blogspot.com/
11 سال پیش
در تاریخ 1392/01/24 منتشر شده
است.
780,321
بـار بازدید شده