asteboids

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 4 Imported by: 0

README

asteboids

made-with-Go

GoReportCard example

GitHub version

GoDoc

gopherbadger-tag-do-not-edit

Asteboids is an 'asteroids'-like game.

A little bit of history

Asteroids is a arcade game released in 1979 by Atari, Inc. The player controls a single spaceship in an asteroid field. The object of the game is to shoot and destroy the asteroids, while not colliding with either. The game becomes harder as the number of asteroids increases.

This repository is a simple port of the original game play in Go, while replacing asteroids with boids (autonomous agents).

Software Design

The 2D game engine is ebiten: A dead simple 2D game library for Go.

Run

$ make run

Run with debug information

$ make debug

Keyboard control

  • key up: startship move forward
  • key left: startship rotate counter clockwise
  • key right: startship rotate clockwise
  • space: startship shot
  • enter: game restart
  • s: takes a screenshot (file is stored as screenshot_<date><time>.png)
  • cmd+q: exit

Resources

Fonts

Some fonts in this repository are copyright (c) Jakob Fischer at www.pizzadude.dk, all rights reserved. Do not distribute without the author's permission. Use these font for non-commercial use only! If you plan to use them for commercial purposes, contact the author before doing so! For more original fonts take a look at www.pizzadude.dk

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(log *logrus.Logger, optim, debug bool) error

Types

This section is empty.

Directories

Path Synopsis
cmd
internal
ai

Jump to

Keyboard shortcuts

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