
-----------------------------------
Junkhead
Thu Jul 05, 2007 8:52 pm

Tetris
-----------------------------------
Hey everyone, I know I haven't posted in a while or anything, but I figured I'd upload my latest creation on here.

Behold, yet another version of tetris.

Except, I've put a lot of time into this, so I want it to be more than "yet another version of tetris".
Everything is nicely detailed, thanks to my graphic artist, and the controls are pretty intuitive.

Controls:

Left/right arrow: move block
Up arrow: rotate block
Down arrow: speed block up
Space bar: drop block in place
Escape: Pause game

Features:

-Fullscreen toggle
-A nice main menu (source for it is included, along with the header file if you want to use it in your own game)
-"Ghost block" functionality
-Cross platform availablility
-Pretty graphics
-Ability to select your starting level
-Preference saving
-A file that stores the blocks, that you can edit to create new blocks.  (File format is documented in source code).

Requirements:

-A monitor capable of displaying an 800x600 screen
-An operating system that supports SDL (most do, don't worry)
-At least 10mb of ram
-Unsure about processor requirements, but the game has a timer built into it so the blocks drop at the same pace, regardless of processor frequency.

This is fully open source, licenced under GPL, the source is included in the archive below under the folder ./source

Well, have fun guys!

-----------------------------------
Junkhead
Thu Jul 12, 2007 9:58 pm

Re: Tetris
-----------------------------------
Holy crap, 70 views and still no comments eh?  Ah well, didn't think it'd be too popular.

-----------------------------------
neufelni
Thu Jul 12, 2007 10:25 pm

RE:Tetris
-----------------------------------
Really good job, but I think something like this would be much easier using Python and Pygame rather than C. Great game though.

-----------------------------------
Junkhead
Thu Jul 12, 2007 10:31 pm

Re: Tetris
-----------------------------------
Totally agree with you man, it's just that the purpose of this for me was to learn more about C lol

-----------------------------------
Junkhead
Sun Jul 15, 2007 6:51 pm

Re: Tetris
-----------------------------------
Alright folks, new version!

This one comes with OpenGL support (run GLTetris2.exe to get it)

Be sure to read the readme.txt file in the archive for details about it, since it's kinda experimental.

Fullscreen mode is now on by default.

-----------------------------------
Junkhead
Sun Jul 22, 2007 5:11 pm

Re: Tetris
-----------------------------------
Another new version, though I need this  to be ported to Windows (my Win32 dev machine is out of commission at the moment).
Anyone who does this, your help is greatly appreciated.

This new version makes use of my new SGL library, which makes it easy to port SDL programs to OpenGL.

Included in this file are the sources, the game binary, and the SGL library (as a .deb for the Ubuntu/Debian users and the actual .so file).

To play, run gltetris2.sh.

Download: http://rapidshare.com/files/44443837/dist.zip.html
(Note: Linux x86 version)

EDIT: Alright, I borrowed my friend's computer for a while, long enough to compile a Windows version.

Download: http://rapidshare.com/files/44451515/Tetris_dist_win32_v3.zip.html

EDIT 2: Uploads on CompSci are broken, so I have to use external sources.  Unfortunately, rapidshare isn't so great.

-----------------------------------
Junkhead
Sun Jul 22, 2007 11:20 pm

Re: Tetris
-----------------------------------
Geez, tough crowd

-----------------------------------
rdrake
Sun Jul 22, 2007 11:33 pm

RE:Tetris
-----------------------------------
Looks very good.  Not sure I like the outline on the bottom of where the piece would go, though.  I kept looking at that instead of the piece itself.

I believe Dan fixed uploads once again.

-----------------------------------
Junkhead
Sun Jul 22, 2007 11:37 pm

Re: Tetris
-----------------------------------
Thanks for the feedback, I probably should have had some kinda settings file to store that kinda stuff in lol

So uploads are working again?  I'll try uploading the two packages:

Seems it worked.

EDIT:  If you guys wouldn't mind, could you post feedback here about how the OpenGL version is working on your computers?  It's worked great on the three I've tested, but any feedback is welcome.  I'll be using the info to revise and improve my SGL library, which will be released to the public when it's done.  Thanks.

-----------------------------------
javaster
Sun Dec 16, 2007 7:29 pm

RE:Tetris
-----------------------------------
Nice. How long did it take to write the program?

-----------------------------------
Junkhead
Thu Jan 03, 2008 5:52 pm

Re: Tetris
-----------------------------------
Oh, it took me roughly a month, I was learning C as I was writing it.  Also, I had to wait for my artist to make the graphics before release and all.

By the way, here's version 4.  Should be final.

Changelog:

-No more repeated keypresses, this annoyed quite a few people.
-Code has been cleaned up a bit.
-I've included my old (not fully functional) netcode, which isn't compiled in.  It causes random errors.  A full rewrite is probably in order.  It's also decentralized.

Edit:  Just wondering guys, for my linux releases of whatever program, what format would you guys like the installer file to be in?  DEB?  RPM?  Autopackage?

-----------------------------------
Joel92
Thu Jan 29, 2009 2:04 pm

Re: Tetris
-----------------------------------
Very cool! Keep up the good work!

-----------------------------------
Homer_simpson
Thu Jan 29, 2009 9:03 pm

Re: Tetris
-----------------------------------
best version of non commercial tetris i've every seen  :D
