demos/

directory
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT

README

Demos

Each of these demos showcases a small concept or feature of engo, or even a more sizable sample game. They have been sorted into categories below.

Conceptual

Headless

Run engo without a graphical display. Useful for servers and testing.

Exit

Run some code, just before the window is actually closed (whenever the user presses the close button, for example).

Asset Bundling

Bundle assets into final binary for easier distribution.

Embed

Bundle assets into final binary for easier distribution using go embed.

Graphics

Hello World

Render and display a single sprite.

Animation

Have multiple animations.

Hide

Hide sprites.

Zoom

Use the camera features to create zooming in/out effects.

Falling

A simple sample game

HUD

Add HUD elements to your games. Learn about priorities.

Shapes

It demonstrates how one can efficiently draw various shapes in solid colors (with/without border).

Scale

It demonstrates how one can manipulate the scale, by using a very simple custom System.

Rotation

It demonstrates how one can create a rotating Entity.

Text

It demonstrates how one can efficiently draw text onto the screen.

Scenes

It demonstrates how one can use multiple Scenes, and switch between them.

IncrementalCamera

It demonstrates how one can move the camera gradually, instead of instantaneously.

Audio

Audio

Play music and sounds on different events.

Scrolling

Edge Scroller

Scroll by using mouse movement.

Entity Scroller

Scroll according to movement of an entity.

Keyboard Scroller

Scroll using the keyboard.

Zoom

Use the mouse to scroll in and out. (zooming)

MouseRotation

It demonstrates how one can rotate the camera, using the middle mouse button.

Games

Pong

Engo implementation of the original pong game

Input

Input

Demonstrates basic keyboard input

Keyboard Scroller

It demonstrates how one can move the camera round, by pressing WASD.

Mouse

Demonstrates basic mouse input

Mouse Follow

Move a sprite using the mouse

Tiled

Tilemap

It demonstrates how one can load and render a TMX file created from the TileMap Editor

Directories

Path Synopsis
assetbundling
assets
Code generated for package assets by go-bindata DO NOT EDIT.
Code generated for package assets by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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