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
»
Mario Kart (faux mode seven)
« previous
next »
Print
Pages: [
1
]
2
Go Down
Author
Topic: Mario Kart (faux mode seven) (Read 7508 times)
0 Members and 1 Guest are viewing this topic.
boot2490
LV7
Elite (Next: 700)
Posts: 607
Rating: +54/-36
Mario Kart (faux mode seven)
«
on:
March 02, 2012, 10:36:00 pm »
So, guys, I made a mode seven engine on my TI 83+ that I plan to later port to AXE and make into a Mario Kart game.
It reads from matrix A. Matrix A, being 5x4, contains coordinates for five lines, each row being X
1
,Y
1
, X
2
, Y
2
. The lines must be within 0 to 94 and 0 to 62.
Reading those lines, it first draws the lines on the screen normally, then after you press enter, it flattens them à la mode seven. The closer the "Perspective Factor" is to 62, the more intense the perspective transformation is. The closer to numbers upwards to about 4000, the more it is like top-down.
Here are some screenies, which show a few different perspective factors and how they transform the same image. Tested on a TI 83+ BE.
And here is the program, and the sample matrix used during testing.
«
Last Edit: March 03, 2012, 02:38:36 pm by boot2490
»
Logged
+2/-0 karm for this message
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!
Spoiler
For
Signature, updated march 23, 11:28 PM EST
:
An useful tool!
PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
jnesselr
King Graphmastur
LV11
Super Veteran (Next: 3000)
Posts: 2270
Rating: +81/-20
TAO == epic
Re: Mario Kart (faux mode seven)
«
Reply #1 on:
March 02, 2012, 11:40:45 pm »
you know that you can store values to the xmin/xmax/ymin/ymax variables in order to force change the screen dimensions for a program, yes?
Logged
boot2490
LV7
Elite (Next: 700)
Posts: 607
Rating: +54/-36
Re: Mario Kart (faux mode seven)
«
Reply #2 on:
March 02, 2012, 11:42:11 pm »
Yeah, I'll do that. I was too lazy to put it in.
Logged
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!
Spoiler
For
Signature, updated march 23, 11:28 PM EST
:
An useful tool!
PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
boot2490
LV7
Elite (Next: 700)
Posts: 607
Rating: +54/-36
Re: Mario Kart (faux mode seven)
«
Reply #3 on:
March 03, 2012, 01:10:24 pm »
Updated!!! It works now.
Logged
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!
Spoiler
For
Signature, updated march 23, 11:28 PM EST
:
An useful tool!
PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
boot2490
LV7
Elite (Next: 700)
Posts: 607
Rating: +54/-36
Re: Mario Kart (faux mode seven)
«
Reply #4 on:
March 03, 2012, 02:39:02 pm »
Updated! I accidentally uploaded an old version.
Logged
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!
Spoiler
For
Signature, updated march 23, 11:28 PM EST
:
An useful tool!
PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
jnesselr
King Graphmastur
LV11
Super Veteran (Next: 3000)
Posts: 2270
Rating: +81/-20
TAO == epic
Re: Mario Kart (faux mode seven)
«
Reply #5 on:
March 03, 2012, 05:02:22 pm »
Also, please don't triple or double post, especially not in so short a time period. There are rules about this, if you click "rules" at the top.
Logged
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Mario Kart (faux mode seven)
«
Reply #6 on:
March 03, 2012, 11:48:03 pm »
Looks nice, but I definitively can't wait to see rotation in action. And yeah no double posting (although the first post in the triple-post was fine, due to being yesterday)
Logged
Reo
LV3
Member (Next: 100)
Posts: 64
Rating: +15/-0
Re: Mario Kart (faux mode seven)
«
Reply #7 on:
March 03, 2012, 11:50:08 pm »
I was surprised how well this works. I hope that these concepts are used for a game, though it may have to be done in ASM for speed.
Logged
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Mario Kart (faux mode seven)
«
Reply #8 on:
March 03, 2012, 11:53:43 pm »
If I remember he's planning to use Axe, which might provide quite good speed. It would definitively need to be optimized, though.
Logged
Jonius7
python! Lua!
LV10
31337 u53r (Next: 2000)
Posts: 1918
Rating: +82/-18
Still bringing new dimensions to the TI-nspire...
Re: Mario Kart (faux mode seven)
«
Reply #9 on:
March 06, 2012, 06:55:50 am »
It didn't completely work for me when drawing, but that's maybe because I am using TI-84+ OS 2.41 on WabbitEmu.
«
Last Edit: March 06, 2012, 06:56:07 am by Jonius7
»
Logged
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler
For
Extra To-Be-Sorted Clutter
:
Spoiler
For
Relegated Projects
:
TI-nspire BASIC
Battle of 16s
(stalled) |
sTIck RPG
(stalled) |
Monopoly
(stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God
(stalled while I go and learn some Axe)
LincolnB
Check It Out Now
LV9
Veteran (Next: 1337)
Posts: 1115
Rating: +125/-4
By Hackers For Hackers
Re: Mario Kart (faux mode seven)
«
Reply #10 on:
March 06, 2012, 05:54:05 pm »
This looks nice, I think it wouldn't be excessively hard in Axe, I mean just look at HappyBobJr's mode 7 game.
Logged
Completed Projects:
>>
Spacky Emprise
>>
Spacky 2 - Beta
>>
Fantastic Sam
>>
An Exercise In Futility
>>
GeoCore
My Current Projects:
Projects in Development:
In Medias Res - Contest Entry
Talk to me if you need help with Axe coding.
Spoiler
For
Bragging Rights
:
Not much yet, hopefully this section will grow soon with time (and more contests)
boot2490
LV7
Elite (Next: 700)
Posts: 607
Rating: +54/-36
Re: Mario Kart (faux mode seven)
«
Reply #11 on:
March 08, 2012, 11:19:47 am »
Mario Kart is on hold until further notice, as I am finalizing the actual mode seven engine, which I will be making a topic for before the week is over.
Logged
I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!
Spoiler
For
Signature, updated march 23, 11:28 PM EST
:
An useful tool!
PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
Jonius7
python! Lua!
LV10
31337 u53r (Next: 2000)
Posts: 1918
Rating: +82/-18
Still bringing new dimensions to the TI-nspire...
Re: Mario Kart (faux mode seven)
«
Reply #12 on:
March 11, 2012, 01:27:20 am »
Take it one step at a time, I think what you have done so far is quite good. Just keep at it, and eventually you should be able to piece things together.
Logged
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler
For
Extra To-Be-Sorted Clutter
:
Spoiler
For
Relegated Projects
:
TI-nspire BASIC
Battle of 16s
(stalled) |
sTIck RPG
(stalled) |
Monopoly
(stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God
(stalled while I go and learn some Axe)
Stefan Bauwens
Creator of Myst 89 - סטיבן
LV10
31337 u53r (Next: 2000)
Posts: 1799
Rating: +162/-24
68k programmer
Re: Mario Kart (faux mode seven)
«
Reply #13 on:
March 16, 2012, 01:27:06 pm »
If I understand correctly of what we were talking before. You want to move a point(X1,Y1) for a certain degrees(R) to a certain direction.
This means your line (X1,Y1,X2,Y2) will move that degree too.
Lets say (X2,Y2) = (0,0) then
And (X1,X2) is for now (5,5) The length of this line is then
sqr(5^2+5^2)
.
The 'slope' of that would be 5/5=1
That means tan^-1(5/5)=45 (note that tan^-1(x) here isn't the same as tan(x)^-1 but that this is arctan).
Now you want to rotate the line, lets say 90° to the left. That means 45°-90°=(-45°)
solve(
5^2+5^2
=x^2 + (tan(-45)x)^2,x) gives x=5*cos(-45)*sqr(2) or x=-5*cos(-45)*sqr(2) (I don't know if the z80 calcs have the solve function but mine ti-89 does).
To know if you have to use - or not at the beginning you can check like this: tan(-45)*1=-1 so you use -
-5*cos(-45)*sqr(2)=-5=X1
tan(-45)*-5=5=Y1
With these new coordinates you can draw your new line at (-5,5,0,0) which is the other line but just rotated 90° to the left.
So I hope this can help a bit.
(Also thank you Jim for helping me with the solve( function)
Logged
+1/-0 karm for this message
Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)
Interview with me
DJ Omnimaga
Clacualters are teh gr33t
CoT Emeritus
LV15
Omnimagician (Next: --)
Posts: 55943
Rating: +3154/-232
CodeWalrus founder & retired Omnimaga founder
Re: Mario Kart (faux mode seven)
«
Reply #14 on:
March 16, 2012, 03:48:49 pm »
By the way since some Axe coders do not check project topics nor any other part of the forums, feel free to ask help in the Axe language section if you need any for Mode 7 or to convert your BASIC code into Axe. Of course OmnomIRC sometimes does the job, but most of the time people have OmnomIRC disabled on their computer to avoid distraction.
Logged
Print
Pages: [
1
]
2
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
Other Calc-Related Projects and Ideas
»
TI Z80
»
Mario Kart (faux mode seven)