Advertisement

Starting a Tetris game in Java

Started by September 06, 2002 09:33 AM
2 comments, last by zeewolf 22 years, 3 months ago
Ok, I''m sort of a beginner to doing games..wouldn''t say I was a beginner to Java (not really anyway ). My final year at college has this class called integrative unit and one of my lecturers said I sohlud design and create a tetris game in java as a good start. Heres the problem: First off.....I dont have a clue where to start. I had objects planned (user, board & brick). But since I''ve just started AWT in java.....I''m very corncered about getting started. I''m not sure about what to do method wise for each object........how to draw the friggen blocks, rotate them, collision detection(just about everything you need to know to do the damn game) First off...I refuse to steal someone''s coding as I wouldn''t really be learning and its cheating. Secondly..I cant expect someone to sit and tell me everything as its unfair on them. I really need some site....like "how to start a tetris game in java", but all I get is tetris assignment PDFs that give you the friggen code that I cant understand.... If anyone could help me a bit, I would be very greatfull Thanks for reading Zee
quote: First off...I refuse to steal someone's coding as I wouldn't really be learning and its cheating.


You can see my tetris applet at

www.geocities.com/nonnus29/index.htm

The source code is also there. Reading source code is one of the best ways to learn how to program games, you can look at mine to see how I did it.

Heres a hint: You said you'll be using AWT; look up "Graphics" in the Javadocs.

EDIT: Second hint; goto to the java forum for people into java game programming.

[edited by - nonnus29 on September 6, 2002 6:04:10 PM]
Advertisement
Thanks, I''m starting to get a good idea of what needs to be done.....btw, in your opinion, do you think tetris is a good place to start for a beginner?
Its the perfect place to start. Its totally non trivial. All the elements of every video game are there. Input, drawing 2d graphics to the screen, timing, data structures, game states etc.

This topic is closed to new replies.

Advertisement