Zylann / voxelgame

Voxel world prototype made with Godot Engine
Other
513 stars 84 forks source link

Created fps demo #66

Closed TokisanGames closed 4 years ago

TokisanGames commented 4 years ago

Ok, it's done. This demo provides a playable character where you can shoot additive, negative, or bouncy balls. There are four scenes setup for blocky/heightmap, smooth/heightmap, blocky/custom stream, and LOD/3d noise.

It uses Godot's physics for collision and raycasting. So to use it as intended, it needs collision built into the terrain. However, the scenes run fine without the patch. Since there's gravity and no collision, you'll just fall through. I've left the Player/Jump_is_jetpack option as the default so you can fly.

The demo lives in /fps_demo.

These other files were changed:

Zylann commented 4 years ago

Wasn't editability and box-physics already available in the blocky demo?

TokisanGames commented 4 years ago

Yes, blocky has editability and box physics. They are still there, as is.

My four scenes are just there for completeness; showing various styles and features. They have the same setup and all reference the same gdscripts. Though my code uses Godot collision.

TokisanGames commented 4 years ago

Hey @Zylann, do you want this in your repository? I'm not attached, but I have been squashing all of my commits for a clean PR. I'd prefer to have a log of changes though so followers can track updates and I can roll back if needed.

I don't anticipate doing much more development here, except updates as VT grows, since this accomplishes what I set out to provide.

We could merge this in yours, or I can make a true independent fork. Maybe that's better then I don't need to depend on you to merge and I can organize it how I like. Or you could make me a maintainer here. What do you think? I could go either way.

Zylann commented 4 years ago

I need to clean this project on my side as well, been messing around a bit too with latest changes. I'll look for merging this after cleaning.

Zylann commented 4 years ago

I just pushed fixes to all demos.

About this PR: if you don't intend to maintain it, I can't guarantee that I will^^" if you are maintaining it in your own repo, I would rather prefer this than letting this one potentially fade away.

Also I see you modified the README with infos about controls, although I'd rather have these self-documented in the demos themselves at runtime (even if it's a label), because it's where users need them, controls may change and eventually I'd like some demos to have a GUI and trackball camera anyways rather than hidden shortcuts and FPS cameras. Like test_* scenes, in which I was doing debug tests so controls aren't friendly.

TokisanGames commented 4 years ago

Ok, I will keep it in my own repo.