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

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
[C] SpeedX 3D reaches your Nspire !
« on: October 05, 2012, 02:52:54 am »
Hi guys !

I'm working on my first real Ndless project in C, a port of the mobile game SpeedX 3D !

In this game, you're a ship, a man or whatever (in any case, you don't see yourself) trapped in a tunnel, and you have to run (or fly, if you're a ship ;D ) while avoiding blocks which are in the tunnel. Why are there blocks here ? Who knows ... :evillaugh:

It's the really beginning of the project, but I've already done a great part, I meant the 3D tunnel effect !



There is still this moiré I have to remove ...

Share comments, I'll update the thread often  ! ;)

For now it only works on non-CX calcs !!!
« Last Edit: October 15, 2012, 11:16:02 am by Matrefeytontias »

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 #1 on: October 05, 2012, 02:57:27 am »
Hey, good luck with this. If I'm not mistaken Nick was doing a port also once. But I think it wasn't in tunnel view.
Looks nice so far.


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

Interview with me

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 #2 on: October 05, 2012, 03:51:27 am »
Wow looks great! Is it the same game as on the iPod Touch? If so, you should make the background and circles the same color tints (blue) :D

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 #3 on: October 05, 2012, 04:11:00 am »
As I said, for now it's only for non-CX calcs -> no colors D:

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #4 on: October 05, 2012, 11:00:28 am »
Dang,but LOOKIN AWSOME
This used to contain a signature.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #5 on: October 05, 2012, 11:41:34 am »
Wow, it looks great !
I see you've resolved your problem with look-up tables :)

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 #6 on: October 05, 2012, 12:01:21 pm »
Yeah, and I can say that the tutorial I used (Ben Ryves's one) is nearly wrong :P
« Last Edit: October 05, 2012, 12:01:46 pm by Matrefeytontias »

Offline nikitouzz

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 215
  • Rating: +22/-1
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #7 on: October 05, 2012, 01:00:30 pm »
matref the z80 won already :p

no forget the axe and the hexa ;)
mes records personels :

2x2x2 : 2.18 secondes / 2x2x2 une main : 21.15 secondes / 2x2x2 yeux bandés : 47.59
3x3x3 : 5.97 secondes / 3x3x3 une main : 49.86 secondes
4x4x4 : 1.49 minutes / 4x4x4 une main : 6.50 minutes
5x5x5 : 4.10 minutes / 5x5x5 une main : 18.02 minutes
6x6x6 : 8.10 minutes
7x7x7 : 16.03 minutes
9x9x9 : 58.26 minutes

megaminx : 5.59 minutes / pyraminx : 7.91 secondes / square-one : 1.07 minutes

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 #8 on: October 05, 2012, 01:02:04 pm »
I hadn't planned so ;D

Offline Wayne

  • LV3 Member (Next: 100)
  • ***
  • Posts: 72
  • Rating: +3/-3
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #9 on: October 05, 2012, 01:22:30 pm »
Nice work :thumbsup:

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #10 on: October 05, 2012, 01:28:47 pm »
As I said, for now it's only for non-CX calcs -> no colors D:
But can't you use the function that looks like "lcd_ingray" (I don't code in C for Nspire so I don't know the exact formulation of the fucntion :P) to make it work on both calcs ?
In fact I don't even know what that command would do but I feel like this would work :P
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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 #11 on: October 05, 2012, 01:45:24 pm »
Oh yeah, I didn't think of it :D I'll use it.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #12 on: October 05, 2012, 10:00:56 pm »
The name of this program is very similar to Nick's program, but I guess it's a different game. It does look really nice right now! Keep up the good work!

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: [C] SpeedX 3D reach your Nspire !
« Reply #13 on: October 05, 2012, 10:04:12 pm »
Are you drawing 1 corner and then mirroring?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


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 #14 on: October 06, 2012, 04:08:43 am »
Nope, I'm drawing the whole scene with
Code: [Select]
for(y = 0; y < 240; y += 2)
{
  for(x = 0; x < 240; x += 2)
  {
    ...
    setPixelBuf(screen, x+40, y, color);
    setPixelBuf(screen, x+41, y, color);
    setPixelBuf(screen, x+40, y+1, color);
    setPixelBuf(screen, x+41, y+1, color);
  }
}

@cyanophycean314 in fact it's the same game, but in Lua and because of the huge amount of calculations Nick choosed to make it plane when in C I choosed to make it a tunnel :)
« Last Edit: October 06, 2012, 04:10:05 am by Matrefeytontias »