Author Topic: [C] SpeedX 3D reaches your Nspire !  (Read 37028 times)

0 Members and 1 Guest are viewing this topic.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: [C] SpeedX 3D reach your Nspire !
« Reply #30 on: October 08, 2012, 04:02:28 pm »
As for other random generator types, a LFSR with significant length (32 bits), initialized with significant entropy (preferably > 10 bits), can yield good enough results without requiring division / modulo.
Several demos made by Thomas Nussbaumer for the TI-68k series, which I ported to the Nspire, use a LFSR written in C. My 127-byte "TV noise" demo, in 68000 ASM, also uses a LFSR for size constraints.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reach your Nspire !
« Reply #31 on: October 13, 2012, 06:14:59 am »
Update !

I added obstacles :thumbsup: well, for now they're inconsistents, but they're here ! ;D



(credits to lkj for the xorrand function)
« Last Edit: October 13, 2012, 06:16:24 am by Matrefeytontias »

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #32 on: October 13, 2012, 09:32:38 pm »
How do you lose? I watched the screenie, and noticed that nothing happened even when the obstacles are in the middle :P
You just lost the game.



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [C] SpeedX 3D reach your Nspire !
« Reply #33 on: October 14, 2012, 03:00:40 am »
How do you lose?

Losing The Game is IMPOSSIBLE?? O.O

Just kidding this looks kinda nice. Do you think in the grayscale version you can eventually add multiple shades of gray so it's no longer monochrome or would that hurt speed too much?
« Last Edit: October 14, 2012, 03:00:46 am by DJ_O »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reach your Nspire !
« Reply #34 on: October 14, 2012, 07:36:38 am »
@AzNg0d1030 I just pressed ESC :P

@DJ_O I'll do that after removing the moiré, or you'll see an ugly grey curve coming to you from the center of the screen. And it doesn't hurt speed at all since grey are fully supported by the LCD.
« Last Edit: October 14, 2012, 07:37:52 am by Matrefeytontias »

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #35 on: October 14, 2012, 07:37:21 pm »
@AzNg0d1030 I just pressed ESC :P

@DJ_O I'll do that after removing the moiré, or you'll see an ugly grey curve coming to you from the center of the screen. And it doesn't hurt speed at all since grey are fully supported by the LCD.
Ah so it isn't implemented yet? (Losing by hitting something)
You just lost the game.



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [C] SpeedX 3D reach your Nspire !
« Reply #36 on: October 14, 2012, 07:48:50 pm »
What is a moiré? ???

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reach your Nspire !
« Reply #37 on: October 15, 2012, 01:23:58 am »
@AzNg0d1030 not yet, but it's my next goal on my list ;)

@DJ_O a moiré is the ugly thing at the center of the screen, if you look well you'll see a cloud of dots which looks like nothing :P

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: [C] SpeedX 3D reach your Nspire !
« Reply #38 on: October 15, 2012, 09:09:27 am »
Maybe I should point out that there is a mistake in the topic title. it should be reaches and not reach if I'm not mistaken.

Also, looking good.


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reach your Nspire !
« Reply #39 on: October 15, 2012, 11:15:01 am »
Oh my, you're right :P
* Matrefeytontias the Frenchie riche iur enspirre

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: [C] SpeedX 3D reaches your Nspire !
« Reply #40 on: October 15, 2012, 05:48:42 pm »
Looks good!  Great progress! ;)


Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reaches your Nspire !
« Reply #41 on: October 16, 2012, 12:43:05 pm »
Aaaw, look at this great update ! :D

I added consistent obstacles, 86 patterns for the blocks to spawn, and working collision detection !



Now, it's fully playable and I've done the gameplay !

Here's what I planned to do :
  • Bonus and malus : they'll be parts of the tunnel filled with different colours corresponding to different (bon|mal) uses
  • 4 difficulty levels (Newbie, Easy, Hard and Hardcore, corresponding to different speeds)
You can of course propose things :)

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: [C] SpeedX 3D reaches your Nspire !
« Reply #42 on: October 16, 2012, 01:08:35 pm »
What do you mean by "working collision detection"? I still don't die if I fall into an obstacle?
Also is it intended that the obstacles sometimes change their places when they're about five segments in front of you?

A highscore system would be cool :)

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: [C] SpeedX 3D reaches your Nspire !
« Reply #43 on: October 16, 2012, 06:01:53 pm »
What do you mean by "working collision detection"? I still don't die if I fall into an obstacle?
Also is it intended that the obstacles sometimes change their places when they're about five segments in front of you?

A highscore system would be cool :)
That's probably a bug. I guess you are supposed to lose when you hit an obstacle at the bottom of the screen :\
You just lost the game.



Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [C] SpeedX 3D reaches your Nspire !
« Reply #44 on: October 17, 2012, 02:04:03 am »
@AzNg0d1030 That's not it ; in fact due to the way I display the obstacles they appear two times : one at a normal distance and one far away. So when the place of the obstacles you just avoided change, the place of the buggy obstacles changes too, even if they are far away. It'll be resolved when I'll remove the moiré.

@lkj no, I meant "collision detection works now" :P

And yeah, I planned highscore, I just forgot to write it ;D