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  
  New Java 2D Game tutorial at planetalia  (Read 4787 times)
0 Members and 1 Guest are viewing this topic.
Offline ahristov

Senior Devvie

Projects: 7

Java games rock!

« Posted 2004-05-24 09:28:43 »

Hello everyone.

This is my first post here, and I wanted to share a 2D game tutorial I wrote this weekend. The tutorial is rather unusual in the sense that is not a big source code that is explained in the text, but rather is a step-by-step tutorial from step 0 (a simple window on the screen) to step 29 (a "space invaders" type of shooter with a scrolling background and sound), each step adding a bit of funcionality on top of the previous one. I believe this way allows to make a non-trivial game while at the same time does not frighten newbies with the size of the source code, since it starts with a mere 10 lines of code. IMHO it also allows to see how and when to refactor code and how to use OOP techniques to changing requirements.

Please have a look at it and tell me what you think. Please also bear with my english - it's not my native languge : any corrections, comments, suggestions, etc. will be appreciated.

The tutorial is located here:

It has a spanish version and an english version (It took me longer to translate the whole thing than to write it  Angry )

If you think it's good, then I might write some other tutorials too.

Planetalia S.L. Cursos de Java
Offline Chman

Junior Devvie

Nothing more that... Java games are cool !

« Reply #1 - Posted 2004-05-24 10:32:00 »

Pretty good tutorial Smiley
Offline nonnus29

Senior Devvie

Giving Java a second chance after ludumdare fiasco

« Reply #2 - Posted 2004-05-24 14:36:41 »

That is really nice.  Bilingual too!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ribot

Junior Devvie

Ribot - mobile UI specialist

« Reply #3 - Posted 2004-05-24 15:05:47 »


Although, a few bugs on my Apple (see screenshot): - design agency focused on mobile - online vintage eyewear store
« Reply #4 - Posted 2004-05-24 16:24:49 »

Cool tutorial! I'm always amazed at the skill level of persons who don't speak English natively, but who can clearly communicate ideas in multiple languages.

Would you be interested in some help with the English documentation? You've already done a great job, but I would be willing to help with cleaning up the grammar, etc. if you would allow me.
Offline ahristov

Senior Devvie

Projects: 7

Java games rock!

« Reply #5 - Posted 2004-05-24 16:54:20 »

Sure, any help is welcome... And thanks... Mail me your corrections to "ax at"

Planetalia S.L. Cursos de Java
« Reply #6 - Posted 2004-05-26 13:23:49 »

I've just started work on the first tutorial.

In what format would you like the corrections? Plain text (.txt) file? Word (.doc) document? Do you want them as an attachment, or in the body of the email?
Offline ahristov

Senior Devvie

Projects: 7

Java games rock!

« Reply #7 - Posted 2004-05-26 22:15:09 »

I don't have any special preferences... Do them in whatever you feel more confortable...  

Planetalia S.L. Cursos de Java
Offline sponge

Senior Newbie

Ek is Java.

« Reply #8 - Posted 2004-05-28 18:18:07 »

Haven't had a lot of time to look it over yet, but it looks pretty impressive..

Might I just suggest a place to download the entire tuturial? for those of us who dont have a permanent internet connection.
Offline ahristov

Senior Devvie

Projects: 7

Java games rock!

« Reply #9 - Posted 2004-05-29 11:08:21 »

I'll think about it, but the problem is that although the tutorial looks as plain and easy html pages, in reality there are a lot of JSP tags that really perform the work (meaning "get this source code, highlight these lines, show these other lines, etc...). Also, the structure of the tutorial is in a database and navigation links are generated automatically.

Planetalia S.L. Cursos de Java
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Shigsy

Junior Devvie

Im great, your not!

« Reply #10 - Posted 2004-10-05 19:24:48 »

Very nice tutorial. Great for a Java game newbie like myself  Tongue

I can resist everything except temptation!
Offline Alex84

Junior Newbie

Java games rock!

« Reply #11 - Posted 2004-10-20 16:59:10 »

Hey Alex,
This tutorial rocks! It is very cool. Actually it is exactly what I was looking for. The idea of building the code step-by-step (and not vice versa, or just providing some snippets from time to time) is excellent. To me, there is no better way to learn than yours! Great work. I would love to see new tutorials from you, just in this style... maybe about LWJGL or network game programming. Would be great!

Now after completing your tutorial I'll do Kev's and then try to work with Brackeen's book.

Thank you for your nice work!

PS: Did I already mention how good your tutorial is? Wink
Offline Alex84

Junior Newbie

Java games rock!

« Reply #12 - Posted 2004-11-22 08:47:21 »

Well though I really love the tutorial, there is something that doesn't work. Eclipse tells me that this method does require other arguments than the ones you wrote. You can find what I mean here:
in, line 27. This method does not work because it needs other arguments. What would be correct then?
Note that I use Java5.
26      public void paint(Graphics2D g){
27        g.drawImage( spriteCache.getSprite(spriteName), x,y, stage );
28      }

Thank you in advance, Alex
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

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

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

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

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

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

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

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

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

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

NoxInc (37 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!