RepositoryGDScript
InvadingOctopus

InvadingOctopus/comedot

Godot template and component-based framework for 2D games.

563stars
48forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: component-architecture

#1 Repository of the week

1
TINIX TRENDING·Topic: 2d-game-framework

#1 Repository of the week

3
TINIX TRENDING·Topic: 2d-game-engine

#3 Repository of the week

Comedot: Components for Godot

Godot+Comedot Logo

The goal is to be an all-in-one project template for 2D games (platformers, shoot-em-ups, RPGs, turn-based, tile-based, strategy, puzzle) where you build scenes by adding components to entities and tweaking their parameters in the UI. "Entities" and "Components" are like regular Godot Nodes but for gameplay, so you can combine this framework with any other addons or architecture or fetish.


components-tree

  • Megatons of components for player movement, combat, collectibles, interactions, upgrades etc.
  • UI controls like a stats HUD and dynamic buttons for special skills, inventory etc.
  • Template scenes for Logo → Main Menu → Options, Input Remapping, Pause Overlay
  • Save/Load player preferences via a config file with just Settings.anyName = 69
  • A neutron star spoonful of helper functions & debugging tools.
  • Commented & documented code.
  • Snippets for VSCode/VSCodium.
  • Free-to-use 3rd-party assets for quick prototyping.
  • Meatcrafted components can be Lego'ed together by AI codeblins to reliably create various kinds of gameplay. *(Comedot itself has no AI-generated code.)

📜 To see a full list of all the 120+ components and 140+ scripts, check out the *Catalog.md files in the /Notes/ folder.

🌟 Some specially sprillific components go beyond basic implementation to make sure gameplay feels right, by handling tricky cases that all games run into sooner or later, like:

  • Health/ammo/etc. collectibles don't get picked up if your stat is at max. If the stat drops while still standing on the item, then it gets picked up!
  • Climbing: Grabbing a ladder/rope while holding the climb input in mid-jump. Walking towards the ladder if not fully aligned. Horizontal movement on fences etc.

[!WARNING] This is still mostly a private personal project; it's what I'm using to make future GotYs while learning Godot as I go. The API eschews cringe conventions like ugly underscores and shit may break frequently: No backwards compatibility is guaranteed!

[!TIP] 🤖 You can try AI agents to update your existing projects to the latest Comedot branch.

🛠️ If you don't need the entire template, you can just yoink specific code to use in your own scripts, like *Tools.gd


Examples

⭐️ The composition architecture lets you do cool shit like putting a GunComponent and MouseRotationComponent on any object and It Just Works: (imgur)

https://github.com/user-attachments/assets/43853546-159f-4184-a7a4-da857ba5e75c

⭐️ Implement dynamic gameplay and easily change abilities/buffs at runtime; just add/remove components in simple event handlers, like this example of swapping between platformer physics and flying/overhead movement: (imgur)

https://github.com/user-attachments/assets/061cf16a-04e9-477d-8f59-e2fa0fa523b7

⬆️ These scenes are included in /Templates/Examples/

📈 There's even kawaii charts for monitoring variables in real-time!

debug-charts


How To Use

[!IMPORTANT]
Requires Godot 4.7 〜embrace the future ✨

🚀 Quickstart: To try right away, open project.godot and run PlatformerSceneTemplate.tscn in /Templates/Scenes/

  1. Clone this repository; this is a Godot template so you should make a local copy of this entire project for each of your games.
    • or you can cherry-pick files from Comedot to use in other templates.
  2. Drag-&-drop nodes from the /Entities/ and /Components/ folders into your scene tree.
    • /Templates/ contains scenes and Entities with preset Components as a quick starting point for various gameplay.
    • /Scripts/ contains code for non-Entity nodes.
    • /UI/ contains customizable UI elements for health, ammo, abilities, upgrades etc.

Custom Dock Plugin

🎳 Whenever your game needs an "actor" like the player character or a monster, or an object with "behaviors" that could be reused for other objects, like interactive items or collectible powerups:

  • Use the included custom dock plugin (the Comedock :) or perform these steps manually:
  1. Create a new Entity node: a Node2D/Sprite2D/CharacterBody2D etc. with the Entity.gd script attached.
  2. Add Component child nodes to the entity. A component is also any Node/Area2D etc. with a script that extends Component
  3. Modify component parameters in the Inspector sidebar.
  4. Save that entity+components subtree as a standalone scene file, to organize it separately from the main "world scene" and quickly create copies of it anywhere.

[!TIP] 📜 Read HowTo.md to see how to do basic tasks or fix common issues.
See Conventions.md for the style guide and design rules this project tries to follow.
Agents.md contains instructions for AI assistants that may also be helpful for meat-based coders.



Comedot © MMXXVI ShinryakuTako@GitHub • Syntaks.io@Discord • Syntaks@Mastodon

💕 THANKS:

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
godotengine/godot

Godot Engine – Multi-platform 2D and 3D game engine

121.3k
Dec 1, 2026
RepositoryJavaScript
4ian/GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.

29.5k
Dec 1, 2026
RepositoryGDScript
TheDuckCow/godot-road-generator

A Godot plugin for creating 3D highways/streets and lane-following traffic

1.3k
Nov 22, 2026
Repository
Calinou/awesome-godot

A curated list of free/libre plugins, scripts and add-ons for Godot

11.1k
Nov 9, 2026
RepositoryC#
sschmid/Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity

7.7k
Dec 30, 2023
RepositoryPython
htdt/godogen

Skills for Claude Code, Codex and Antigravity to build games, and anything else a game engine renders well

7.4k
Nov 21, 2026
RepositoryRust
nobodywho-ooo/nobodywho

NobodyWho is an inference engine that lets you run LLMs locally and efficiently on any device.

1.7k
Dec 3, 2026
RepositoryC++
CraterCrash/godot-orchestrator

Orchestrator: Unleashing Creativity with Visual Scripting

1.7k
Nov 26, 2026
RepositoryC++
DmitriySalnikov/godot_debug_draw_3d

Draw 3D debug graphics and 2D overlays with this add-on.

1.1k
Apr 4, 2026