flat assembler
Message board for the users of flat assembler.

Index > Windows > Tetris game, first approach

Goto page 1, 2, 3  Next
Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
Be aware, the program chashes after a while playing. I will fix it when I have time Rolling Eyes


Description:
Filesize: 10.93 KB
Viewed: 2450 Time(s)

Tetris.png


Description:
Download
Filename: TetrisWF1.zip
Filesize: 2.39 KB
Downloaded: 90 Time(s)

Post 05 Jan 2012, 11:16
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
cool Very Happy
Post 05 Jan 2012, 12:17
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
Nice, I have a COLUMNS game -- just did it over these holidays.
Post 05 Jan 2012, 14:30
View user's profile Send private message Send e-mail Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 559
smiddy
Looks nice from here. I will take a close look later this evening when I get home.
Post 05 Jan 2012, 19:11
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 245
Location: US
Yardman
[ Post removed by author. ]


Last edited by Yardman on 29 Jan 2012, 20:19; edited 1 time in total
Post 05 Jan 2012, 20:15
View user's profile Send private message Reply with quote
Yardman



Joined: 12 Apr 2005
Posts: 245
Location: US
Yardman
[ Post removed by author. ]


Last edited by Yardman on 04 Apr 2012, 04:33; edited 1 time in total
Post 05 Jan 2012, 20:22
View user's profile Send private message Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz
Post 05 Jan 2012, 21:15
View user's profile Send private message Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
Well, this is the second approach to tetris game. I think it works rather well (if someone find a bug, please tell me).

There are many things that wait to be added:
* Score
* Level
* Speed increasing
* Title frame
* Etc

When I have time... Have fun.

P.D. Maybe you have noticed that there's a new figure, u alike, what do you think about it?... Do you think anything? Laughing

Regards


Description:
Download
Filename: TetrisWF1.zip
Filesize: 4.54 KB
Downloaded: 58 Time(s)

Post 06 Jan 2012, 19:34
View user's profile Send private message Visit poster's website Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1409
Location: Toronto, Canada
AsmGuru62
U can be dropped only legs up!
Smile
Post 06 Jan 2012, 21:01
View user's profile Send private message Send e-mail Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
"U" shape is not a part of the tetris elements set, because it contains 5 squares.
Also, the key Up rotates the element in the wrong direction.
Post 07 Jan 2012, 09:48
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
You can rotate figures with up arrow cursor...
Post 07 Jan 2012, 09:48
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
i think.... the source.
Post 07 Jan 2012, 13:23
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
In this version I fix a bug when exit the program, also up now it is possible exit the program using escape key.

Source code? Sure:

http://www.abreojosensamblador.net/Productos/AOE/html/Pags_en/Chap08.html#Tetris

This is a source code for some years ago... Thank you for your time.

Looking at this post I've noticed that I had forgotten zip file... Confused Well... This version fix a bug in exit code and we can exit using escape key, also we can choose successfully new game... Perhaps this time I can achieve upload the file Laughing


Description:
Download
Filename: TetrisWF1.zip
Filesize: 4.42 KB
Downloaded: 34 Time(s)

Post 08 Jan 2012, 10:39
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
I have added this time score and level indicators as well as increasing speed with level, plus fixed a bug on collision checking. Besides I'd like to add a "hall of fame" feature. It is also needed a deeper code revision in order to optimize it and erasing bugs if they exist.


If anyone find a bug, please, report it to me

Regards


Description:
Filesize: 37.75 KB
Viewed: 2317 Time(s)

Tetris2.png


Description:
Download
Filename: TetrisWF1.zip
Filesize: 3.83 KB
Downloaded: 49 Time(s)

Post 23 Jan 2012, 08:30
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
1. The rotation should be counter clock wise, or at least user adjustable. Now it annoys extremely.
2. The "standard" tetris playing field is 10 squares wide and 20 squares high.
3. "U" element is not tetromino element, because it contains 5 squares, not 4.
4. The score digits dark blue/light blue are almost unreadable on my display.
5. The background is blue for me and the labels draws wrong on black rectangles. Screenshot attached:


Description:
Filesize: 9.04 KB
Viewed: 2315 Time(s)

tetris.PNG


Post 23 Jan 2012, 09:23
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
Wow!, every system is a world apart Wink Which operating system do you have? In WXP and W7 the window is black. Maybe i could light more numbers, although i believe they can be readed well.

On the other hand, the goal is not to make an exactly clonic of Tetris, but a game alike it.

Thank you for your feedback.

Humm... if i don't remember wrong, it is possible that the blue background appears in the last servicepack of W7....
Post 23 Jan 2012, 09:43
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
My OS is WinXP professional. The blue color is actually the color of the desktop. Maybe your is black?
The rotation direction is really important IMHO. It is matter of habits, acquired during thousands hours of tetris play. Very Happy
Post 23 Jan 2012, 11:09
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
JohnFound wrote:
My OS is WinXP professional. The blue color is actually the color of the desktop. Maybe your is black?
The rotation direction is really important IMHO. It is matter of habits, acquired during thousands hours of tetris play. Very Happy


Very Happy

Yes, I can understand ... I have played many games, but I have a special memory for Doom and Stardust (by TopoSoft, my first game).

Not a major change, so ... when i will make the hall of fame, i will make figures rotate in reverse ... In the case of U, it was an experiment ... I think it makes the game more difficult and therefore more interesting.

I guess that the wallpaper color does not affect to the background.

Kind regards.


Description:
Filesize: 399.78 KB
Viewed: 2302 Time(s)

Tetris3.png


Post 23 Jan 2012, 12:26
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
Quote:
I guess that the wallpaper color does not affect to the background.


Don't mix up the picture of the background and the color of the background. You can check your in "Control panel"|Display|Appearance|Advanced|"Item Desktop"
Post 23 Jan 2012, 12:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 191
Location: Madrid - Spain
avcaballero
Yes, you are right, when i change this property, the background color of the game changes also. Thank you.
Post 23 Jan 2012, 13:28
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.