Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
Tetris BG Code
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Tetris BG Code (Read 3763 times)
0 Members and 1 Guest are viewing this topic.
Jon
LV5
Advanced (Next: 300)
Posts: 278
Rating: +0/-0
Tetris BG Code
«
on:
February 06, 2007, 03:17:00 pm »
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 -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
.
EDIT: sorry if I kinda ruled basic programmers out on this, but it is an ASM project, I had no choice.
Here's a sample, the code that makes it spiral:
c1-->
CODE
ec1
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
c2
ec2
Logged
trevmeister66
LV9
Veteran (Next: 1337)
Posts: 1009
Rating: +14/-5
Tetris BG Code
«
Reply #1 on:
February 06, 2007, 06:18:00 pm »
hmm... too bad i'm no good at ASM, or i would help. I guess i could give you some ideas though
.
1. Make it say TREVMEISTER66, and have it scroll downwards throught the lvl.
2. hmm...can't think of anyting else.
Logged
Projects: nameless RPG: 1.0% |
Reverse Snake v1.5:
100% | Secret Project: 5% | DUNGEON: 70%
My
MW2 Blog
<-- Please visit
Speler
LV8
Addict (Next: 1000)
Posts: 857
Rating: +6/-2
Tetris BG Code
«
Reply #2 on:
February 07, 2007, 09:35:00 am »
If I design a background and show how it would work with in theory can you use it (I don't speak asm).
Logged
Fallen Ghost
Guest
Tetris BG Code
«
Reply #3 on:
February 07, 2007, 09:59:00 am »
Entry #1: Right rotate (very original
)
c1-->
CODE
ec1
Logged
Jon
LV5
Advanced (Next: 300)
Posts: 278
Rating: +0/-0
Tetris BG Code
«
Reply #4 on:
February 07, 2007, 06:32:00 pm »
@Fallen_Ghost:
I've added your first entry (it's brilliant
), but your second entry has problems, and crashes upon execution
You will receive credit for your first entry however.
@Super_Speler:
It depends on how specific your idea is, and whether or not I will be able to apply it to ASM, but yes, if you come up with the idea, even if not in ASM, you will still get credit for it. Post this idea of yours ASAP!!! :thumbup:
Logged
Fallen Ghost
Guest
Tetris BG Code
«
Reply #5 on:
February 08, 2007, 12:37:00 am »
If your program is an application/SMC unallowed, it will mostly destroy everything, having SP pointing to some random data.
The second needs to be debugged so I'll do that.
Logged
Fallen Ghost
Guest
Tetris BG Code
«
Reply #6 on:
February 08, 2007, 02:20:00 pm »
Sorry for double-posting, just needed to say I updated:
c1-->
CODE
ec1 ld hl,plotSScreen+756
ld a,(HL)
ld hl,plotSScreen
ld b,64
ld de,12
loop:
ld c,(HL)
ld (HL),a
ld c,a
add hl,de
djnz loop
ld b,64
ld hl,plotSScreen+756+7
ld d,(hl)
inc hl
ld e,(hl)
ld hl,plotSScreen+7
loop2:
ld a,(hl)
ld (hl),d
ld d,a
inc hl
ld a,(hl)
ld (hl),e
ld e,a
ld a,11
add a,l
ld l,a
jr nc,$+2+1
inc h
djnz loop2
retc2
ec2
This should work better, it is tested, and doesn't use SMC nor any buffer, like specified in the rules.
Maybe an idea for you instead of making 25 routines, just make ~15 backgrounds and a few routines...
Logged
Jon
LV5
Advanced (Next: 300)
Posts: 278
Rating: +0/-0
Tetris BG Code
«
Reply #7 on:
February 25, 2007, 05:34:00 pm »
Damnit people, I still need 16 more
learn ASM faster plz
Logged
trevmeister66
LV9
Veteran (Next: 1337)
Posts: 1009
Rating: +14/-5
Tetris BG Code
«
Reply #8 on:
February 25, 2007, 06:53:00 pm »
finsih your asm tutorial faster O_O
Logged
Projects: nameless RPG: 1.0% |
Reverse Snake v1.5:
100% | Secret Project: 5% | DUNGEON: 70%
My
MW2 Blog
<-- Please visit
Jon
LV5
Advanced (Next: 300)
Posts: 278
Rating: +0/-0
Tetris BG Code
«
Reply #9 on:
February 25, 2007, 07:37:00 pm »
Jon needs to learn html first.
Logged
Fallen Ghost
Guest
Tetris BG Code
«
Reply #10 on:
February 26, 2007, 01:01:00 am »
Jon needs to give us more space to work with
Jon would be asked to respond in his thread when a code is posted, othwerwise we think we work for nothing.
Logged
CureDesu
Guest
Tetris BG Code
«
Reply #11 on:
February 26, 2007, 01:16:00 am »
Just in theory: (woke up this morning, 2 hour delay from school, and thought I'd give it a shot)
Left Sprial: (even less original
)
c1-->
CODE
ec1bg_3:
Logged
Liazon
Guest
Tetris BG Code
«
Reply #12 on:
February 26, 2007, 10:59:00 am »
don't worry, it's legal, since PlotsScreen is a defined constant, PlotsScreen+1 must also be a constant
Logged
trevmeister66
LV9
Veteran (Next: 1337)
Posts: 1009
Rating: +14/-5
Tetris BG Code
«
Reply #13 on:
February 26, 2007, 11:50:00 am »
don't worry jon, html is really really easy. If you know asm, you can easily learn html
Logged
Projects: nameless RPG: 1.0% |
Reverse Snake v1.5:
100% | Secret Project: 5% | DUNGEON: 70%
My
MW2 Blog
<-- Please visit
Jon
LV5
Advanced (Next: 300)
Posts: 278
Rating: +0/-0
Tetris BG Code
«
Reply #14 on:
February 27, 2007, 12:10:00 pm »
* Jon apologizes to Fallen Ghost for ignoring him, then adds his routine, as well as cure's routine to the mix, giving a grand total of 11 routines (-54125+10).
@Fallen Ghost: shifting down, looks exactly the same as shifting to the right, sorry.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
Tetris BG Code