Author Topic: [Ndless] Tunnel  (Read 28063 times)

0 Members and 1 Guest are viewing this topic.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #15 on: June 19, 2013, 01:04:46 am »
Here you go: http://pastebin.com/dx8a30x6

Edit: Sorry for using your BMP loading code without permission. I was just testing things. :P
« Last Edit: June 19, 2013, 01:12:36 am by Spenceboy98 »
I like milk.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless] Tunnel
« Reply #16 on: June 19, 2013, 04:40:23 am »
Oh you're using it. So I know why there are those vertical lines on the texture : you're trying to use 3-bytes bitmaps but my function only loads correctly 16-bits non-paletted bitmaps.

EDIT : error spotted. You must not cast to unsigned when calculating distance and angle, because pixels at the left of te center have negative angles.
« Last Edit: June 19, 2013, 04:47:06 am by Matrefeytontias »

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #17 on: June 19, 2013, 03:14:14 pm »
Oh you're using it. So I know why there are those vertical lines on the texture : you're trying to use 3-bytes bitmaps but my function only loads correctly 16-bits non-paletted bitmaps.

EDIT : error spotted. You must not cast to unsigned when calculating distance and angle, because pixels at the left of te center have negative angles.

The old screenshot didn't use your bmp loading routine. The one attached does. Thank you for your help! :D
« Last Edit: June 19, 2013, 03:15:11 pm by Spenceboy98 »
I like milk.

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #18 on: June 19, 2013, 04:28:04 pm »
*BUMP*

There are downloads attached. I have one for CX and one for regular. If your Nspire has a touchpad, it will work for left and right. There is no BMP texture loading for now. I'm not sure how I'm going to do obstacles. I'm not sure if the CX one works, but if you can test it, please post screenies. :D
I like milk.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Ndless] Tunnel
« Reply #19 on: June 20, 2013, 03:16:18 am »
wow,
just wow,
that's looking faaar to amazing!

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless] Tunnel
« Reply #20 on: June 20, 2013, 04:11:39 am »
Nice :) now try to look around and to bend the tunnel ;D

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: [Ndless] Tunnel
« Reply #21 on: June 20, 2013, 04:22:49 am »
Looks really great!

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: [Ndless] Tunnel
« Reply #22 on: June 20, 2013, 04:50:21 am »
The screenshot looks cool, but the CX one isn't working. It only shows four black squares at the top of the screen.

Edit: Oh, and you should probably clear the screen at the start of your program, the garbage it displays before starting is a bit ugly :P
« Last Edit: June 20, 2013, 04:54:05 am by lkj »

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #23 on: June 20, 2013, 09:39:43 am »
The screenshot looks cool, but the CX one isn't working. It only shows four black squares at the top of the screen.

Edit: Oh, and you should probably clear the screen at the start of your program, the garbage it displays before starting is a bit ugly :P

I don't know how to program for CX. :P Also, what garbage? I don't see any.
I like milk.

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: [Ndless] Tunnel
« Reply #24 on: June 20, 2013, 10:05:57 am »
Now I don't see it anymore, either.
If you have lcd_ingray() at the start of your program, it should work without any changes (unless you directly use the timers or other hardware).

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #25 on: June 20, 2013, 10:28:01 am »
Now I don't see it anymore, either.
If you have lcd_ingray() at the start of your program, it should work without any changes (unless you directly use the timers or other hardware).

That means that the not-CX version should work on the CX. The CX version I put lcd_incolor(); :P
I like milk.

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: [Ndless] Tunnel
« Reply #26 on: June 26, 2013, 07:49:35 pm »
Yep I had the same issue with the CX version. It just glithces up the screen then  four black squares appears. Exiting works fine, though (no reboot).

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless] Tunnel
« Reply #27 on: July 25, 2013, 06:27:13 pm »
Here's a version with loaded BMP textures using Matre's BMP loading routine(attached).

Screenies attached as well.

Edit: Supports relative file paths and the texture has to be 64*64.
« Last Edit: July 25, 2013, 06:28:43 pm by Spenceboy98 »
I like milk.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Ndless] Tunnel
« Reply #28 on: July 25, 2013, 07:02:02 pm »
that just looks so awesome, gret job!

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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: Re: [Ndless] Tunnel
« Reply #29 on: July 25, 2013, 09:35:05 pm »
Nice indeed. I am really curious about how this would look like with color support in game.