Skip to content

Latest commit

ย 

History

History
100 lines (71 loc) ยท 3.77 KB

File metadata and controls

100 lines (71 loc) ยท 3.77 KB

Super Tux War Documentation

Welcome to the Super Tux War documentation! This is a comprehensive guide for developers, level designers, and contributors.

๐Ÿ“š Documentation Sections

Complete guide to creating and designing levels for Super Tux War.

How to contribute code, assets, documentation, and more. Includes list of needed assets.

Feature roadmap and development priorities (multiplayer, sound system, game modes, etc.).

Component-based character architecture for players and NPCs.

Core Systems

  • Acceleration Physics - SMW-style momentum-based movement system
  • Debug Launch Config - Local-only scene + debug overrides
  • Event Bus (coming soon) - Event system architecture
  • Game State (coming soon) - State management
  • Input Management (coming soon) - Input handling

๐ŸŽฎ Quick Links

๐Ÿ“– About This Documentation

This documentation is maintained alongside the code in the docs/ folder. When making code changes, please update the relevant documentation to keep everything in sync.

Documentation Standards

  • Use clear, concise language
  • Include code examples where relevant
  • Add screenshots/diagrams when helpful
  • Keep file paths relative to project root
  • Follow markdown best practices

๐Ÿ”ง Technical Overview

Project Structure

super-tux-wars/
โ”œโ”€โ”€ assets/          # Sprites, tiles, audio
โ”œโ”€โ”€ scenes/          # Scene files (.tscn)
โ”œโ”€โ”€ scripts/         # GDScript code
โ”‚   โ”œโ”€โ”€ characters/  # Player & NPC logic
โ”‚   โ”œโ”€โ”€ core/        # Core systems
โ”‚   โ”œโ”€โ”€ levels/      # Level management
โ”‚   โ”œโ”€โ”€ objects/     # Interactive objects
โ”‚   โ””โ”€โ”€ ui/          # User interface
โ”œโ”€โ”€ addons/          # Editor plugins
โ””โ”€โ”€ docs/            # This documentation

Core Constants

The game uses 32ร—32 pixel tiles and SMW-style acceleration physics defined in GameConstants:

  • Tile Size: 32px
  • Acceleration: 30 px/sยฒ (7.5 px/sยฒ on ice)
  • Friction: 12 px/sยฒ ground, 3.6 px/sยฒ ice/air
  • Gravity: 1440 px/sยฒ
  • Jump Velocity: -540 px/s
  • Max Walk Speed: 240 px/s
  • Max Run Speed: 330 px/s (turbo)

See game_constants.gd for complete values and Acceleration Physics for detailed behavior.

๐Ÿค Contributing to Documentation

Found a mistake or want to improve the docs? Contributions are welcome!

  1. Edit markdown files in the docs/ folder
  2. Test that links work correctly
  3. Submit a PR with your changes

Version: Godot 4.5.1
Last Updated: 2025-11-09