Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.44 KB

File metadata and controls

36 lines (31 loc) · 1.44 KB

xsubi-engine2d

Game-agnostic 2D engine primitives. Pure data structures and algorithms.

Package

  • engine2d/ — import as import engine2d or from engine2d.math import Vec2
  • Zero external dependencies for engine core
  • Python 3.12+

Module Map (UC source of truth)

Module UC Key Exports
math.py UC-MB-018 Vec2, Vec2i, Rect
color.py UC-MB-019 Color
sprite.py UC-MB-020 Sprite, TextureRegion
animation.py UC-MB-021 AnimationClip, AnimationPlayer, AnimationController, LoopMode
tilemap.py UC-MB-022 Tilemap, TileRegistry, TileDef
particles.py UC-MB-023 ParticleEmitter, Particle, EmitterConfig
collision.py UC-MB-024 CollisionWorld, Collider, ContactManifold, AABBShape, CircleShape, PointShape
pathfinder.py UC-MB-025 Pathfinder, PathGrid, PathRequest, PathResult, HeuristicType
input.py UC-MB-026 InputSystem, InputMap, InputAction, KeyEvent, KeyCode
timer.py UC-MB-027 Timer, TimerManager, TimerMode
state_machine.py UC-MB-028 StateMachine, State, Transition
audio.py UC-MB-029 AudioEngine, AudioClip, PlaybackHandle
camera.py UC-MB-030 Camera2D, ShakeState
compositor.py UC-MB-031 LayerCompositor, Layer

Import Convention

  • Internal: from .math import Vec2, Vec2i, Rect
  • Internal: from .color import Color
  • Tests: from engine2d.math import Vec2

Tests

python -m pytest tests/ -v