![]() |
|
2007 Allegro ScreenHack, 80x25 compo |
Trezker
Member #1,739
December 2001
![]() |
What... No comment on me?
|
Matthew Leverton
Supreme Loser
January 1999
![]() |
Quote: Matthew Leverton: Tetris?... I already played a Tetris entry... oh, and you can keep getting points by holding down, even after the piece has hit the bottom, I assume it's a glitch?
I said: scoring for pressing the down key is generous (especially if you bump against the side), but it's good enough for demo #1.
|
kenmasters1976
Member #8,794
July 2007
|
There are some really fun entries. Well done everybody!. Arvidsson, great job on all your entries. Neil Black, all I see is a black screen and a shooter. Nothing to shot at. Yet scored 600 pts. Mokkan, your pong entry works fine. What else can I say?. netcat, your space invaders idea seems interesting but I can hardly see the shots. HardTranceFan, the maze seems too long. Perhaps that's the point?. Jeff Bernard, all I get is a black screen with the red square at the bottom. Trezker, nice game. Got 93 kills in version 0.3. Kikaru, you know... you can go trough boxes. Matthew Leverton, wow! 15 lines?.
|
Matthew Leverton
Supreme Loser
January 1999
![]() |
I added color (each piece is a different color that is 'remembered' when placed) and now its up to 1,180 characters—almost 16 lines. So I have 740 characters to add the "next" indicator, sound effects, music, multiple modes of play including multiplayer (joystick, mouse, network, and artificial intelligence). |
Jeff Bernard
Member #6,698
December 2005
![]() |
Quote: What... No comment on me? I forgot, I wasn't sure what to say, really. I just played the newest version though, and I like the homing weapon. Quote: all I get is a black screen with the red square at the bottom. Hmmm... I wonder if it's possible that the default palette would have the colors in different orders on different machines in 8 bit mode? Speaking of color, I hope I remembered to ensure that the centipede is never black... I'll look into this. Quote: scoring for pressing the down key is generous (especially if you bump against the side), but it's good enough for demo #1. So my assumption was essentially correct. Man, I don't need to read anyone's posts! -- |
Matthew Leverton
Supreme Loser
January 1999
![]() |
Here's my "final" version: http://www.allegro.cc/files/attachment/595225 Windows binary: tetris.exe. OS X binary: tetris.gz
I still have two lines left, but I don't really feel like adding anything else. So it appears that I can write 23 lines of code before getting tired of the project. The game features awesome Tetris gameplay, sound effects*, and a high score. * What a waste of a couple lines of code. |
Mokkan
Member #4,355
February 2004
![]() |
I'll try to come up with a more original entry in the next couple days.
|
HardTranceFan
Member #7,317
June 2006
![]() |
I find it great that there has been quite a few neat little game ideas programmed, and I'm quite surprised at what can be achieved with the limitations set. -- |
Anomie
Member #9,403
January 2008
![]() |
You guys might find this interesting, if you haven't seen it before. A basic version of Tetris in one line of BASIC (six or seven screen-lines, though, when wrapped at 80 col). Here's code, just cause it's fun to look at: 0d=d:IFdVDUd:a=POINT(32*POS,31-VPOS<<5):RETURNELSEMODE9:GCOL-9:CLG:O FF:d=9:REPEATVDU30:REPEATGOSUBFALSE:IFPOS=28VDUPOS,15,VPOS,24;11,26:IF0E LSEIFa=0PRINT:UNTIL0ELSEUNTILVPOS=25:v=ABSRNDMOD7:i=0:VDU4895;3:REPEATm= 9-INKEY6MOD3:FORr=TRUETO1:t=rANDSGNt:IFt=rCOLOURv-15:VDUrEORm:i+=m=7AND9 -6*r:IF0ELSEFORn=0TO11:d=n/3OR2EORd:GOSUBFALSE:IF1<<(n+i)MOD12AND975AND& C2590EC/8^vVDU2080*ABSr;:t+=a:IF0ELSENEXT,:VDU20:UNTILt*LOGm:UNTILVPOS=3 I like Matthew's a whole lot more (totally awesome), but that's as small as I've ever seen the basic gameplay represented. ______________ |
Matthew Leverton
Supreme Loser
January 1999
![]() |
The clever part of Rheolism is how all seven shapes are encoded into a single 32-bit integer. If you can do that in a way that's easy to access, then the hard part is done. I didn't try to do that because given 25 lines, it's not needed. For my final version, I just used a simple system: 0 1 2 3 4 5 6 7 8 9 A B C D E F So the square would be 0x0145. This works nicely because it actually represents the offsets: y x 0 => 00 00 => 0,0 1 => 00 01 => 0,1 4 => 01 00 => 1,0 5 => 01 01 => 1,1 When I need to test against a shape, I just read the right four bits as (y,x) then bit shift to get the next block. |
Kikaru
Member #7,616
August 2006
![]() |
Yes, I know my game doesn't work. No matter how hard I try, I can't get the collision code to register consistently. |
Onewing
Member #6,152
August 2005
![]() |
Alright, I gave it a shot. Unfortunately, I'm not elite enough, because my code fits in a 80x31. http://www.allegro.cc/files/attachment/595239 How to Play: BUG Note: Make sure you don't have the cursor (red box) near where the water is filling. I becomes erratic and you will lose. Commands: The break in the code below is where I went over the limit.
------------ |
Frank Griffin
Member #7474
July 2006
|
The full size game I am writing is 11,000 lines of code now. "gut feeling the people in England are poor" -Samuli |
kenmasters1976
Member #8,794
July 2007
|
Updated version. This is likely the last version of my Tetris and the end of my activity in this ScreenHack since I won't be writing another entry. I did't feel like rewriting all the underlying code so I just patched it to have different colors, even though I'm not actually sure if it looks better or worse. Maybe it's just that I couldn't find a color combination that can be created on-the-fly and yet look good. Luckily I can revert it to the previous look by simply changing a few parameters. Now the pieces fall slower and the velocity increases every 10 lines. Also, hopefully all gameplay issues must be fixed now.
{"name":"595251","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/6\/46723a2f8e48800a1482a96668210f46.gif","w":264,"h":433,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/4\/6\/46723a2f8e48800a1482a96668210f46"}
|
Tomasz Grajewski
Member #4,284
February 2004
|
Very simple pong clone, in only 16 lines of code, but with collision bug:
http://www.allegro.cc/files/attachment/595253 ___________________________________________________________________________________________ |
Per Larsson
Member #276
April 2000
![]() |
Awesome entries, everyone. Especially the tetris games blow my mind ________________________ |
kenmasters1976
Member #8,794
July 2007
|
Tomasz Grajewski, the pads are barely visible and it takes a bit too long for the ball to go from one side to the other at that speed.
|
Tomasz Grajewski
Member #4,284
February 2004
|
Posting updated version:
___________________________________________________________________________________________ |
kenmasters1976
Member #8,794
July 2007
|
That's better indeed Tomasz Grajewski. Well done. Onewing, it seems you can't move after pressing 'N' to start a new game.
|
Skywhy
Member #9,243
November 2007
![]() |
Oh, what the hell? This thread is made of total awesomeness and win! I totally suck in doing things like this, the compo really ain't for me but hell, it seems so much fun that I have to give it a shot There should be more stuff like this. I already got this idea in my head for an game snicker |
MiquelFire
Member #3,110
January 2003
![]() |
Thread is still open, so this compo is still open. basically, if the thread gets closed, it's over, and voting will begin (I guess) --- |
Paul Pridham
Member #250
April 2000
![]() |
Keep it open! I want to do something for this, just haven't had time yet. ---- |
Skywhy
Member #9,243
November 2007
![]() |
I already started mine yesterday at work, I just couldn't resist... Got the basic idea going. Don't have the time to do this on saturday(today) but I'll wrap it up tomorrow(sunday) I guess... Nomnom! Everybody polishing their entries or lost their interest already? |
Seppl
Member #4,656
May 2004
![]() |
Mika Turunen said: Everybody polishing their entries or lost their interest already? The second. __________________________________ |
CGamesPlay
Member #2,559
July 2002
![]() |
I actually sat down and worked on my old entry. I found a lot of places where I could save more space and I did add some basic syntax highlighting, but it wasn't really adding anything to the game -- Ryan Patterson - <http://cgamesplay.com/> |
|
|