Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Tetris is done

11 replies · 2,164 views · Started 20 March 2003

Here's a screenshot of the finished project:

User posted image

I had fun programming this game. I worked with 3 other guys in a group. It was a project for CS 142. So hey, my first video game.😊

Unfortunately, unless you have a java compiler, you can't play this game. Java can't generate executables the way C++ can. Since this program is a java application and not an applet, it can only be run by compiling the code.

I am going to try and modify the code to run in an applet but I don't think it will work because of what kind of grahic library we used. I'll let you know if I suceed and you guys can play it.

The GUI was made by me in Photoshop. I did about half the engine programming and some menu program. The other guys did the other half of the engine programming and most of the menu programming.

The options menu allows you to choose the background color and the difficulty setting. Quit opens a window asking if you'd like to quit, and the pause/resume button is fully functional. If you press newgame, everything is cleared and a new game starts. Everything works well and doesn't have any bugs. The "phsyics" (which I made) are nice and comfortable. I have played the game for a while and gotten quite far.

Anyway, so that's that.😊

***************
EDIT
***************

HERE TRY THIS. THIS IS AN EXECUTABLE THAT MIGHT WORK

Beldaran, you might try looking around for an AOT (Ahead Of Time) Java compiler. With that you can take java source code (maybe bytecode as well) and create an executable out of it, eliminating the need for the JRE. I know that they exist but most of the ones that are easy to find are commercial. I'm sure there's some freeware ones out there though.

Originally posted by tgf_guy
Excellent work! But be careful; "Tetris" is actually copyrighted. O_o

...So is Zelda... :shrug:

Anywho... Nice work, Beldaran... I really like the marble/metal effect the screen has... Really nice touch... One suggestion, though, is for the blocks to have a similar effect (unless you can change that in the options menu...)

Originally posted by Dracula

...So is Zelda... :shrug:

Anywho... Nice work, Beldaran... I really like the marble/metal effect the screen has... Really nice touch... One suggestion, though, is for the blocks to have a similar effect (unless you can change that in the options menu...)

You know, I want to make the blocks have that affect, but I haven't figured out how to get the program to load all the image files in advance. If I don't do that, it constantly loads, unloads, and reloads all the images and goes horribly slow. So until I figure it out, it will have to be those bland little rectangles.😊

Originally posted by Beldaran

You know, I want to make the blocks have that affect, but I haven't figured out how to get the program to load all the image files in advance. If I don't do that, it constantly loads, unloads, and reloads all the images and goes horribly slow. So until I figure it out, it will have to be those bland little rectangles.😊

Understood... Hey, it's still Tetris... It still kicks ass. 😃