Skip to content

GG-Computing/engine-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple2D - Minimal Python 2D Engine and Editor

This workspace contains a minimal 2D game engine and a visual editor built with Python's Tkinter (no external libraries). It's intentionally small but structured so you can extend it.

Files

  • main.py - entrypoint (launches editor)
  • editor.py - Tkinter-based visual editor (place entities, edit properties, save/load, run)
  • engine/core.py - Engine class that runs update/draw loop in a Tkinter window
  • engine/entity.py - Entity container with components
  • engine/components.py - Basic Transform, Sprite, Physics components
  • scene.py - Scene management and serialization

How to run

Run the editor:

python main.py

Usage

  • Add entities in the left panel. Select them to edit position, sprite and physics.
  • Save scenes as JSON and re-open them later.
  • Click "Run Scene" to open a separate window running the scene.

Notes and next steps

  • This is a starting point. Suggested improvements:
    • Add image sprite support (PhotoImage)
    • Add more components and a behavior scripting system
    • Implement undo/redo and transform gizmos
    • Add collision callbacks and tilemap support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages