tactics

command module
v0.0.0-...-c712ff3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

README

tactics

A 2D tactics game written in Go, using a custom engine on the SDL2 library.

Unfinished; current state includes rendering of the isometric grid but no actors or game logic/scenes.

Requirements

Documentation

See godoc.org/github.com/willroberts/tactics

  • engine: sdl2-based game engine
  • engine/menu: menu logic and rendering
  • engine/input: keyboard and mouse handling
  • game/scenes: scenes for the game
  • game/unit: code for representing units (players, NPCs, objects)
  • grid: standalone code for representing game boards
  • tmx: standalone code for interacting with tiled files

To Do

Core Features

  • Allow camera movement in both X and Y directions simultaneously.
  • Clean up input package, add tests
  • Allow resolution adjustment in Settings menu
  • Add units
  • Add sprite textures
  • Add assets from http://flarerpg.org
  • Add movement logic
  • Add turn-based combat logic
  • Add music and sound effects

Design and Organization

  • Read https://godoc.org/github.com/veandco/go-sdl2/sdl
  • Remove all SDL-specific code from grid package (?)
    • OR: move grid to engine/grid
    • Textures stored in cells
    • Colors stored in cells
    • Checkerboard & CheckerColor funcs for color operations
  • Move tmx to engine/tmx
  • Evaluate usage of int32 (engine)

Packaging and Polish

  • 100% test coverage
  • Comment audit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package engine contains bindings to SDL for rendering graphics.
Package engine contains bindings to SDL for rendering graphics.
input
Package input handles keyboard and mouse input with SDL.
Package input handles keyboard and mouse input with SDL.
menu
Package menu provides various ways to draw a main menu and handle user input.
Package menu provides various ways to draw a main menu and handle user input.
game
scenes
Package scenes contains scenes for our game, including menus and levels.
Package scenes contains scenes for our game, including menus and levels.
unit
Package unit contains game logic for controllable characters and NPCs.
Package unit contains game logic for controllable characters and NPCs.
Package grid contains code for modeling a 2D grid, used as a game board in either orthogonal or isometric orientation.
Package grid contains code for modeling a 2D grid, used as a game board in either orthogonal or isometric orientation.
Package tmx contains functions for parsing Tiled maps and extracting their properties.
Package tmx contains functions for parsing Tiled maps and extracting their properties.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL