Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (427)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
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 4073 times)
0 Members and 1 Guest are viewing this topic.
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Posted 2004-05-24 11: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:

http://www.planetalia.com/cursos

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 Member




Nothing more that... Java games are cool !


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

Pretty good tutorial Smiley
Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #2 - Posted 2004-05-24 16: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 Member




Ribot - mobile UI specialist


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

Nice!

Although, a few bugs on my Apple (see screenshot):

http://www.ribot.co.uk/temp/invader_23.png

http://ribot.co.uk - design agency focused on mobile
http://www.retrospecs.co.uk - online vintage eyewear store
kul_th_las
Guest
« Reply #4 - Posted 2004-05-24 18: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 Member


Projects: 7


Java games rock!


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

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

Planetalia S.L. Cursos de Java
kul_th_las
Guest
« Reply #6 - Posted 2004-05-26 15: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 Member


Projects: 7


Java games rock!


« Reply #7 - Posted 2004-05-27 00: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 20: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 Member


Projects: 7


Java games rock!


« Reply #9 - Posted 2004-05-29 13: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 Member




Im great, your not!


« Reply #10 - Posted 2004-10-05 21: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 18: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 09: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:
http://www.planetalia.com/cursos/Java-Invaders/JAVA-INVADERS-13.tutorial
in Actor.java, line 27. This method does not work because it needs other arguments. What would be correct then?
Note that I use Java5.
1  
2  
3  
4  
26      public void paint(Graphics2D g){
27        g.drawImage( spriteCache.getSprite(spriteName), x,y, stage );
28      }
29      


Thank you in advance, Alex
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.

xsi3rr4x (78 views)
2014-04-15 18:08:23

BurntPizza (69 views)
2014-04-15 03:46:01

UprightPath (81 views)
2014-04-14 17:39:50

UprightPath (66 views)
2014-04-14 17:35:47

Porlus (82 views)
2014-04-14 15:48:38

tom_mai78101 (106 views)
2014-04-10 04:04:31

BurntPizza (166 views)
2014-04-08 23:06:04

tom_mai78101 (262 views)
2014-04-05 13:34:39

trollwarrior1 (212 views)
2014-04-04 12:06:45

CJLetsGame (221 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!