Tetris
Moderator: MaxCoderz Staff
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
Tetris
Hey, I made a tetris game, check it out.
Last edited by snowman_hater on Wed 07 Feb, 2007 3:30 am, edited 1 time in total.
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
Note: refresh if you don't see the pic in my first post.
I would have put this in the graphics section, because it is technically graphics, but I decided not to, because it is coding, not sprites.
So here's what I need. I need 22 different routines that will animate the tetris background. The 2 areas that need animation are the far left column, which is Plotsscreen, and each byte below it (pixel columns 0-7), and the other, larger column, Plotsscreen +7, and Plotsscreen +8, and the bytes below it, (pixel columns 56-71), the only requirements are that the routine be under 5000 t-states, and not use any RAM other than plotsscreen (that means no adding sprites, you have to make it mess with what's already there [look at the screenshot in the other thread]). You should post your entries here with the code, followed by how you want your name in the credits, and a screenshot of it in action. This is not a competition, since I don't expect I will get more than 23 entries, it is just a way for you to get easy credits . All it takes is a pad of paper and 5 minutes.
Here's a sample, the code that makes it spiral:
I would have put this in the graphics section, because it is technically graphics, but I decided not to, because it is coding, not sprites.
So here's what I need. I need 22 different routines that will animate the tetris background. The 2 areas that need animation are the far left column, which is Plotsscreen, and each byte below it (pixel columns 0-7), and the other, larger column, Plotsscreen +7, and Plotsscreen +8, and the bytes below it, (pixel columns 56-71), the only requirements are that the routine be under 5000 t-states, and not use any RAM other than plotsscreen (that means no adding sprites, you have to make it mess with what's already there [look at the screenshot in the other thread]). You should post your entries here with the code, followed by how you want your name in the credits, and a screenshot of it in action. This is not a competition, since I don't expect I will get more than 23 entries, it is just a way for you to get easy credits . All it takes is a pad of paper and 5 minutes.
Here's a sample, the code that makes it spiral:
Code: Select all
bg_0:
ld hl,plotsscreen
ld de,12
ld b,64
bg_loop_1:
rlc (hl)
add hl,de
djnz bg_loop_1
ld hl,plotsscreen+7
ld de,11
ld b,64
bg_loop_2:
rrc (hl)
inc hl
rrc (hl)
add hl,de
djnz bg_loop_2
ret
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
- CDI
- Maxcoderz Staff
- Posts: 321
- Joined: Tue 24 May, 2005 7:25 pm
- Location: If I find out, you'll be first to know.
- Contact:
Argh, you need to be on IRC more often, I hate reporting bugs on forums for some reason.
Yeah, the high scores are waay buggy, and the T piece, when rotated clockwise [ so it's a T on it's right side ] there are added pieces to the lower left side of the piece... like so
and it being Tetris, it should score like Tetris. Being you can score for more than just line clears. At least, that's how I didtinctly recall the NES version of Tetris working [ the one liscensed by Nintendo. It's been too long since I played the TenGen version ]
Yeah, the high scores are waay buggy, and the T piece, when rotated clockwise [ so it's a T on it's right side ] there are added pieces to the lower left side of the piece... like so
Code: Select all
O
OO
O O
OO
-
- New Member
- Posts: 19
- Joined: Mon 01 Jan, 2007 12:17 pm
- Location: Ticalc, Obsessing over Stats
I'm interested to know how Tetris coding would work. Is the playfield it like a tileset?
My diet consists of nails, code-stealers, and HP fans.
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
-
- Sir Posts-A-Lot
- Posts: 245
- Joined: Mon 14 Nov, 2005 9:47 pm
- Location: Getting overwhelmed by everything
- Contact: