Log In  

Cart #space_station_demo-0 | 2021-07-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
57

Here's a quick demo of a 6 degree of freedom 3D engine that I have been working on.
You can just explore a small space station in a Descent-like style.

Controls
Z: Thrust
Arrow Keys: Turn
X+Arrows: Roll

Notes
The map is stored in a long string and is generated from a Blender OBJ file. The station is as complex as I can make it before running out of compressed code space. To make something larger, I think I would have to switch to more of a 3D tile system with room building blocks that snap together.

The engine uses a simplified portal system paired with convex sectors to determine room visibility and draw order.

Thanks
Thanks to Fred72 for the polyfill code. (https://www.lexaloffle.com/bbs/?tid=3393)

P#94322 2021-07-02 05:53 ( Edited 2021-07-02 05:54)

Good job, it works pretty well !

As I was discovering the space station, I get this error two times.

To reproduct, just go forward as the demo start and then turn around

P#94325 2021-07-02 06:13

Yeah... haven’t been able to debug that one yet. Error code isn’t especially informative about why it’s failing.

P#94326 2021-07-02 06:36
:: Jusiv
1

Quite fancy! (Tho a little trickier to control than I anticipated.)
For convenience/quality of life it might be nice to be able to toggle whether the vertical axis is inverted, as well as adding a control to fly backwards (maybe holding X and Z together?)

P#94327 2021-07-02 06:44

my frames died when I was looking at a certain spot but other than that flawless!
For some reason it feels really good to bonk things

P#94328 2021-07-02 07:28

I 100% agree that some control options would be handy— invert, reverse and such. Also, I want to see what a mouse control would feel like.

The cart stability issues are one of the reasons I released a demo — I think I am hitting some unhandled corner cases of the internal line drawing code (zep provided a temp fix) and maybe thrashing other areas too.

Usually the error codes indicate the failure type, so I wonder if something odd is happening with the interpreter. Also it’s giving “line 0” as error location, which feels abnormal.

P#94337 2021-07-02 14:51
:: Joe25

I got the same error as dhostin twice. once, where he did, at the front, and once at what I assume is some sort of navigation panel near the back.

Edit: I also get a crash whenever I leave pico-8 running in the background.

P#94345 2021-07-02 16:55 ( Edited 2021-07-02 16:57)
:: Felice

@Joe25
Does the game crash or does the PICO-8 executable crash?

P#94385 2021-07-03 02:18 ( Edited 2021-07-03 02:18)
:: Felice

@electricgryphon

Nice. It's too bad there's no good button combo for reverse thrust. Z+X means you can't roll while thrusting forward. I tried double-click-and-hold but I kept engaging it by accident when feathering the accelerator. Hmm.

P#94392 2021-07-03 04:01 ( Edited 2021-07-03 04:01)
:: Joe25

@Felice
Just the game. I'd be a bit more worried if it was the executable.

P#94393 2021-07-03 04:01
:: Felice

@Joe25
Ok cool. PICO-8 behaves differently when it's the background, so I was worried it might be a system crash.

P#94394 2021-07-03 04:02

For a bit, I had up + left or right as rolling-- I wonder if that feels more natural. It would have the benefit of freeing the x button for shooting or reverse or something like that...

P#94397 2021-07-03 06:27

the up and down are inverted make an option to invert the vertical turn direction

P#94428 2021-07-04 01:31

love this :)

P#94433 2021-07-04 07:20
:: mac

Definitely feels like Descent right away, which I haven't even thought about in years! Lovely demo. Thanks for sharing.

P#94820 2021-07-13 23:44

Amazing demo man.

P#94850 2021-07-14 12:19

Wow! This is amazing. I used to play Decent a ton as a kid so this is pretty awesome. Bravo!

P#95113 2021-07-21 00:57

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-09-27 19:55:59 | 0.063s | Q:45