This is an open source prototype of a Godot FPS Game.
Play it in your browser or download it for Linux and Windows on Itch.io
I developed this over a weekend to get a better understanding of state machines.
I learned a lot from the Godot-4-fpsarms demo
- WASD - Movement
- Mouse - Look
- Left Click - Shoot
- Right Click - Aim Down Sights
- R - Reload
- Space - Jump
- Shift - Sprint
- Ctrl - Crouch
- Sprint+Crouch - Slide
- 1/2/3 - Switch Weapon
- Q (Hold) - Weapon Wheel
- E - Interact
- Esc - Pause Menu
Full controller support with analog movement and camera, plus aim assist (sticky aim) on the right stick.
- Left Stick - Movement
- Right Stick - Look
- Right Trigger - Shoot
- Left Trigger - Aim Down Sights
- X/Square - Reload
- A/Cross - Jump
- L3 (Left Stick Click) - Sprint
- B/Circle - Crouch
- Sprint+Crouch - Slide
- D-pad Up/Right/Down - Switch Weapon
- LB/L1 (Hold) - Weapon Wheel
- Y/Triangle - Interact
- Start - Pause Menu
I use a Godot resource to save data for the player.
You can load the saved data statically using:
var player_save: PlayerSave = PlayerSave.load_player_data()
Add any export variables you wish to store, and then save using:
player_save.save_player_data(player_save)
Music by Troll-Lyd: SoundCloud, Itch.io
Font is Geizer
Enemy is FPS Character Beetle by rohin_n
Prototype Textures by Kenney
Main Menu Backgroud image by Écrivain
