flat assembler
Message board for the users of flat assembler.

Index > DOS > Tetris without Win32 example

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 203
Location: Madrid - Spain
avcaballero 07 Sep 2010, 19:50
Well, here it is. A little modification in the Tetris code in order to delete garbage before it begins. Although I must say that the goal of this code is discussing programming methods, not doing market programs.

As to the bug of the program of not being written in graphic mode, for the moment I believe that I am going to leave it at the list of tasks. Nevertheless, if someone is interested, I dare to show some examples of space invaders, this time in graphic mode. In each other, a different method for the control of velocity is discussed:

1) Reading BIOS-ticks:
http://www.abreojosensamblador.net/html/Pags/Cap35.html#BiosTicks

2) Handling Int 1Ch (using our own ISR)
http://www.abreojosensamblador.net/html/Pags/Cap35.html#Intercep1Ch

3) Modifying PIT counter 0
http://www.abreojosensamblador.net/html/Pags/Cap35.html#PIT0

4) But what about reading from PIT and not modifying it?, It would not be harmful for the system
http://www.abreojosensamblador.net/html/Pags/Cap35.html#Canal0PIT

5) The same as point two but adding background music through the speaker (first approach)
http://www.abreojosensamblador.net/html/Pags/Cap35.html#Intercep1ChMus

6) The same as above but fixing background music problems
http://www.abreojosensamblador.net/html/Pags/Cap35.html#Intercep1ChMusCorr

7) By the way, in case there is somebody interested, I have left as a challenge creating a video game like "Stardust", from Topo Soft.

And, if you want to see some more examples of graphic programming:

1. Chapter 32. Fractals
http://www.abreojosensamblador.net/html/Pags/Cap32.html

2. Chapter 34. Examples of graphic programs.
http://www.abreojosensamblador.net/html/Pags/Cap34.html
* Dumping graphic screen to a bitmap
* Bouncin balls
* Bump mapping
* Feedback effect
* ... Well, and many more.

In other hand discussing about list: queues, stacks, trees. Sort and search methods. Buble sort, quick sort, sorting indexed by multiple keys,...
http://www.abreojosensamblador.net/html/Pags/Cap07.html

And many more if you consider to take a walk around for my web site. Comments would be appreciate.

Regards


Description:
Download
Filename: TetriCF1.zip
Filesize: 1.75 KB
Downloaded: 396 Time(s)

Post 07 Sep 2010, 19:50
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1903
DOS386 07 Sep 2010, 23:16
> And many more if you consider to take a walk around for my web site.
> Comments would be appreciate.

0. Much stuff Shocked

1. Seems to be Spanish Neutral

2. http://www.abreojosensamblador.net/html/Pags/Cap01.html#ProgMSDOS

What about non-M$ OS'es ???

buggy shot: http://board.flatassembler.net/topic.php?t=11854 http://www.file-pasta.com/file/0/TXTETRIS.PNG
Post 07 Sep 2010, 23:16
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 12 Sep 2010, 16:21
Post 12 Sep 2010, 16:21
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.