Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Godot 4.4.1 2D Game Template

This repository is a starting point for Godot 4 projects that need a basic 2D player controller and weapon system. The template includes example scenes, scripts and a minimal UI so you can jump straight into prototyping.

Getting Started

  1. Run ./setup-godot.sh to download the Godot editor to ~/.local/bin/godot.
  2. Launch the editor and open project.godot (the main menu will load by default).
  3. Test the weapon system by running Scenes/Testing/weapon_test_scene.tscn or try the new sample stage at Scenes/Testing/sample_stage.tscn.

Documentation

Features

  • Player controller with several movement modes and a basic state machine.
  • Modular weapon architecture supporting hitscan, projectile and melee weapons.
  • Includes basic beam and area-effect examples.
  • Built‑in effects like muzzle flashes, shell casings and bullet impacts.
  • Simple UI scene that displays the current weapon and ammo count.
  • A dedicated test scene with target dummies and weapon spawners.
  • Basic enemy scene and script ready for AI experimentation.
  • A minimal main menu that loads a sample stage demonstrating the weapon spawner.

Enemy Template

The Scenes/Enemies folder contains a reusable enemy setup. The main scene (Enemy.tscn) includes an AnimatedSprite2D, a NavigationAgent2D for pathfinding and a WeaponMount for equipping any of the provided weapons. Variants like EnemySideScroller.tscn or EnemyTopDown.tscn simply set the movement_mode property to match the player controller. Open the test scene at Scenes/Testing/weapon_test_scene.tscn to see an example enemy chasing and firing at the player.

Contributing

Pull requests and issue reports are welcome. Fork the repo, create a branch for your changes and submit a PR with a clear description. Please keep commits focused and follow the existing code style.

Template Goals

See TODO.md for the list of planned improvements.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages