Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.59 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.59 KB

CharacterMovement

a 2d capsule based character movement implement demo.

Prerequisites

nodejs & npm

Build & Run

1. Install development dependencies

npm install

2. Build the project

only build the code

npm run build

or start a development environment

npm run dev

3. Try it

open the public/index.html or navigate to localhost:5000
Test online https://whoisfpc.github.io/CharacterMovement/

What it is

It is a demo project, implement 2d capsule based character movement.

What it is not

It is not a library, so it will hard to direct use it in other project.

Debug Console

Console Vars Description
Time.scale (0-1), scale time
Debug.showDebugDraw (true,false), show move infos

Todo list

  • Walking
  • Walking slope
  • Step up stairs
  • Falling
  • Jumping
  • Animation
  • Improve robustness
  • Network multiplayer

License

This project is licensed under the MIT License - see the LICENSE file for details

Reference

UE4 CharacterMovement

https://gafferongames.com/post/state_synchronization/

http://www.gabrielgambetta.com/client-server-game-architecture.html

Credits

Test animation sprites come from Animated Pixel Adventurer