Title:

Java Game Programming Developement Tutorial

Home
deutsch
  
ISBN: 3827328152   ISBN: 3827328152   ISBN: 3827328152   ISBN: 3827328152 
 
  Wir empfehlen:       
 

Snakin Movement

Again I don't have enough time to write a whole chapter about this problem (even though it would be really necessary, because it is not that simple to understand). I used this technique together with the level editor, I explained to you a few chapters ago in my game Snakin. Well here comes a short description of the problem: We want to move a snake around but we don't want to repaint the whole applet everytime we execute the thread. To make this possible, we will add a new Snake Element at the head of the snake and we repaint the last element of the snake in a new color (the color of the background). Well all the other things are in the sourcecode (you can download it at the end of the chapter). I know it won't be simple to understand it, because all comments are in German but if you are a experienced programmer it should be no problem for you and this is really a difficult chapter!

Oh, well, click on the applet and move the snake with the cursor keys. If you want to make the snake longer, you have to press Space Bar. Alright here comes the download link:

SourceCode download
  
Handbuch der Java-Programmierung: aktuell zur Java Standard Edition Version 6 (Broschiert)
von Guido Krüger,
Thomas Stark
Siehe auch:
Eclipse IDE - kurz & gut
Java - kurz & gut
Das Einsteigerseminar Objektorientierte Pro...
Java 6 Das Übungsbuch. 200 Aufgaben mit vollst...
Java-Intensivkurs: In 14 Tagen lernen Projekte er...
Eclipse in der Java-Entwicklung: aktuell zur...
 
   
 
     

Back to the topic sites:
StudyPaper.com/Startseite/Computer/Informatik/Programmieren/Java
StudyPaper.com/Startseite/Computer/Spiele

External Links to this site are permitted without prior consent.
   
  Home  |  deutsch  |  Set bookmark  |  Send a friend a link  |  Copyright ©  |  Impressum