211
TI-Nspire / Re: Interpretor of BrainFuck
« on: December 29, 2012, 02:05:09 pm »
Then I think the challenge is set. Sorunome, make us 'more or less' in brainf*ck, NOW!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 211
TI-Nspire / Re: Interpretor of BrainFuck« on: December 29, 2012, 02:05:09 pm »
Then I think the challenge is set. Sorunome, make us 'more or less' in brainf*ck, NOW!
212
TI-Nspire / Re: Interpretor of BrainFuck« on: December 29, 2012, 02:03:57 pm »
Can you even store values with that language? otherwise it's not really possible i guess..
213
TI-Nspire / Re: Game selection help« on: December 29, 2012, 01:28:21 pm »
nope, i could toggle the boolean each time you press though, but that's kinda unhandy, isn't it?
edit: you can't detect a keyUp in lua 214
TI-Nspire / Re: Interpretor of BrainFuck« on: December 29, 2012, 01:27:35 pm »Then we would be Omnimaga: The brain fuckers of tomorrow.lol, make it brainf*ckers then, because google doesn't like f*ckers without * 215
TI-Nspire / Re: Game selection help« on: December 29, 2012, 01:26:11 pm »
yeah, sure, otherwise it wouldn't be fun anymore. I only realised something. The nspire has no quality key-repeat. So whenyou press the arrow key it takes about a second before it gets recognized as a continuous pressing, and even once it started, it only calls on.arrowKey() 5 times per seconds (+-), so i would have to find a way to handle this.. and other keys don't have keyrepeat at all (except for [tab] i think)
216
TI-Nspire / Re: Game selection help« on: December 29, 2012, 01:11:52 pm »
well, this pic is kinda demotivating, hence the number of deaths..
![]() 217
TI-Nspire / Re: Game selection help« on: December 29, 2012, 01:08:51 pm »
Oh man this is sooo awesome, I'm quite sure that'll be it, thanks for that tip sorunome
![]() 218
TI-Nspire / Re: Game selection help« on: December 29, 2012, 01:02:27 pm »
yeah, i saw the banner at the top of the page
![]() 219
TI-Nspire / Re: Game selection help« on: December 29, 2012, 12:59:07 pm »
Indeed, i'm sure it will
![]() 220
TI-Nspire / Re: Game selection help« on: December 29, 2012, 12:55:18 pm »
wut? what kind of game is that? I died like 20 times in the first 4 levels
![]() ![]() The only problem is that i'll have to complete them all.. 221
Axe / Re: [Axe] Mode 7 test« on: December 29, 2012, 10:35:00 am »
Very nice, but how come it is so incredibly slow in the 'beautiful' mode?
222
Lua / Re: [Lua] math.atan2() problem« on: December 29, 2012, 07:34:47 am »
darn, when I do this:
Code: [Select] platform.apilevel = '1.0' I get the correct values on both the nspire as the pc, so there must be something different that causes the wrong answers.. and to be complete, here are both the :timer() and :paint(gc) Code: [Select] function TheGame:timer()
223
Lua / Re: [Lua] math.atan2() problem« on: December 29, 2012, 07:17:21 am »does math.atan() give the same on calc ?I changed the math.atan2(yDif, xDif) by math.atan(yDif/xDif) and that gives the same results as atan2 on pc and calc, so again different values. Also, calling the nspire's math engine gives the same (just for testing, it's way too slow to use for real while in calculations, I guess) ?if I do tan-1(150/20) I get the same result on calc and pc (1.44) when in radian, same for degrees, but then 82.4, which is correct. I also changed the settings to both radian and degrees of both the pc and the calc, but that does not seem to influence anything (just to make sure). I guess i've tried all possible solutions: Code: [Select] local tan = math.atan2(yDif, xDif) it lways keeps returning 1.44 on pc (correct) and 0.68 on calc (wrong).edit: I'll redo math.Eval, now it just returns a number of course, since the calculation already happens in lua, brb with the correct values 224
Computer Projects and Ideas / Re: [Cemetech Contest #9] Reuben Quest HD« on: December 29, 2012, 06:07:24 am »
Is there somewhere some kind of screenie available? Because I would like to see the progress you've made
225
Lua / [SOLVED] math.atan2() problem« on: December 29, 2012, 05:57:05 am »
SOLVED SOLVED SOLVED SOLVED SOLVED SOLVED, thanks Jim!
Hi While working on my Uno game, I discovered something very strange. I wanted to make an animation in which a card moves from one place to another, and therefore I need to determine the angle between the position is is now, and the position it has to travel to. To do this, I use math.atan2( xdifference, ydifference), which return an angle in radians. When I let the computer software (runs OS 3.2) calculate everything works fine, and the card moves from the position it is to where it has to go, like it should. Buut when I run exactly the same code, just transfered via usb, on my calc (nspire cx cas, os 3.1.0.392), it doesn't work. The angle it returns is about half the size of the one from the student software, while using exact the same calculations. Am I not seeing something? Or is there some mess up with radians vs. degrees on software and calc? Here's the code: Code: [Select] function TheGame:timer() screenie pc: screenie calc: ![]() The number in the corner is the value returned by math.atan2(), of which you can see it differs Solved: I had to update the screenSize after init, because that seems to return 0 at the beginning. Thanks Jim!! |
|