Week 8A - Playtest!


So I need folks help here. You know what? I have an idea. Comment on this post with any feedback you have, and your name goes in the credits under "First Fliers" (Post the name you want listed in that comment). I don't expect much, a couple minutes of fiddling around will do it.

 Offer open until....let's say 10 people reply.

The short version is this: I want help to know if this feels good to handle or not. Pressing the E key will toggle some sliders that change some numbers. Controller input works, enough for testing. Pressing B (xbox) or A (nintendo) will jump.

The other controls remain the same as they are on the main page. WASD for walking. While flying, W/S accelerates, A/D tilts, and mouse does full turns. There is a bug on controller where rotating the camera while walking has

For the curious, the code for movement is as follows. A bit of a simplification, my code organization isn't the best. Suggestions appreciated.

  1. Find the forward vector and modify that based on movement keys. This just takes the Transform.basis, modifies it then normalizes it.
  2. Adjust the values of rotation based on input (mouse or joystick)
  3. If resetting from flying (pressing jump or hitting the ground) then quickly readjust left/right rotation (z axis)
  4. State switch statement
    1. Flying
      1. Rotate player and turn based on A/D input. If no input, float back to neutral
      2. Accelerate or decelerate (floor is 0) using W/S input
      3. Check the angle of flight, if pointed down then speed up.
    2. Jump
      1. Apply gravity
      2. Check if jumping again
    3. Walk
      1. Apply gravity
      2. Check for jump
  5. Apply the rotations
  6. Apply a linear interpolate to the final velocity vector using acceleration * delta as T
  7. MoveAndSlide

Also if anybody has recommendations for 2D interior tileset packages, I'd like to see them. I probably don't have the time to make my own.

Files

ADoW_8A_Flight.zip 29 MB
Nov 06, 2021

Get Deliveries in Jam Valley

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

(I just noticed the post says comment here and not on the game page, so I'll put my comment here as well :P) 

The flying is cool, but the rolling feels a bit too slow and I think you keep your flying speed after flying where the floor would be instead of resetting to the walking speed. As far as I can tell that's it for bugs and it feels good otherwise, I can't wait for it to be more fleshed out!