Author Topic: [Axe] Game with a 3D tunnel with first person view in it but no name yet  (Read 15248 times)

0 Members and 3 Guests are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #15 on: December 30, 2013, 12:05:31 pm »
You cold make the tunnel get smaller as you go along too.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #16 on: December 30, 2013, 12:26:29 pm »
I think a 3D tunnel is not overkill enough though :P

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #17 on: December 30, 2013, 12:39:03 pm »
Looks like you have a lot of horizontal and vertical lines. If you aren't already, I would suggest drawing them with HLine() and VLine() instead of the standard Line() for what I imagine would be a noticeable speed boost.

* Runer112 jots down to make this special-casing automatic in a future version of Axe.
« Last Edit: December 30, 2013, 12:40:42 pm by Runer112 »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #18 on: December 30, 2013, 12:56:29 pm »
It's exactly what I did in this update :P I also optimized clipping a lot. Result is more than 400 bytes added (program is now 2419 bytes large), but speed doubled at now 18 FPS (using #ExprOn) ! :D



There are still some clipping bugs when you're outside the tunnel, but you're not supposed to be there anyway.

Next step : attempt solid rendering. I think I see a method that wouldn't be too CPU-intensive.
« Last Edit: December 30, 2013, 12:57:07 pm by Matrefeytontias »

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: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #19 on: December 30, 2013, 01:51:05 pm »
Very great! :D

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #20 on: December 30, 2013, 05:19:08 pm »
I have solid rendering awesomeness working ! :D clipping windows are so much fun.

Actually, it only works when segments are not connected. So I planned to release two games : an actual 3D clone of the Tunnel game and another one more interesting :P

I'll post screenshots of both when I'll have collisions done for the former, and clipped connections for the latter. :)

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: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #21 on: December 31, 2013, 12:30:01 am »
Wait, did you manage to achieve solid rendering without much speed loss? O.O

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #22 on: December 31, 2013, 03:40:12 am »
It's actually faster than when wireframe :P

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #23 on: December 31, 2013, 05:42:01 am »
Okay, so I'm done with the tunnel game, it's ready to release :D
The tunnel starts large and slow and become faster and smaller as you progress !
Try to beat 1578, my highscore :P (I'm sure it's not that hard).

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #24 on: December 31, 2013, 07:02:38 am »
The solid tunnel looks really cool, but when you get over 1000, it looks like the segments of the tunnel aren't all at the same distance from eachother. Is this intentional, a bug, or just an optical illusion?
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #25 on: December 31, 2013, 07:47:58 am »
You're right, looks like it's a bug. I know how to correct it though.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #26 on: December 31, 2013, 10:01:08 am »
Would it be possible to add the diagonal lines back in? I think it looks better that way.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #27 on: December 31, 2013, 10:27:07 am »
True this, I liked the game better with them. I think they were removed because they are slower than horizontal and vertical lines only. But in this case, something should be done about the score because TI's routines are slower than my first ASM program.
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: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #28 on: December 31, 2013, 11:07:39 am »
I'll include segment connections in the other game. I wanted this one to be fast-coded, kinda as a proof of concept, and segment connections are not clipped yet. But that'll definitely be done in a more complete game.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: [Axe] Game with a 3D tunnel with first person view in it but no name yet
« Reply #29 on: December 31, 2013, 12:27:07 pm »
That game is awesome  :thumbsup: will you be making a menu?
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.