Skip to content

An attempt at replicating quake movement in Godot (WIP / incomplete)

Notifications You must be signed in to change notification settings

axel37/godot-quake-movement

Repository files navigation

godot-quake-movement

An attempt at replicating quake movement in Godot (WIP / Incomplete)

Video demonstration : https://www.youtube.com/watch?v=ALRW8pSbosE

The movement code is located in Player.gd

A few notes :

  • All features are not implemented, such as going up steps.

Warning

This work was adapted from various sources found on the internet. As I haven't really invented anything, I can not (nor do I want to) restrict the use of any part of this project. As far as I'm aware, none of the sources I used prohibited redistribution or modification. However, I can not guarantee it...

I am very much a beginner at Godot, game programming and programming in general.

I can not gurantee in any way that this code is of acceptable quality, nor that it works.

You should keep this in mind if you want to use this in your own project !

To summarize, feel free to use this, but do so at your own risk !

Sources

A number of resources on the internet were used to create this. The most important ones being :

The code behind Quake's movement tricks explained (by Matt's Ramblings)

Bunnyhopping from the Programmer's Perspective (by Adrian Biagioli)

The displaying of vectors was taken directly from :

Drawing Vectors in 3D (KidsCanCode / Godot Recipes)


While not consulted for the development of this project, I recently stumbled upon this resource which further explains Quake's movement code :

https://github.com/myria666/qMovementDoc/