Go to file
Will Beason edff5053b6 Add go.mod to pixel-examples
As-is stops working in Go 1.15.
This was fixed with "go mod init" and "go mod tidy".
There doesn't seem to be particular value in per-example go.mod files, so I've made one for the entire project.

I wasn't able to get community/amidakuji/glossary/util.go to build; it seems the example may be unfinished.
Otherwise, the examples I tried seemed to function as intended.

Add explicit instructions for Windows systems.
It took me hours of trying various configurations to find one which works on a fresh machine, this should help new users.

Add /.idea and *.exe to .gitignore to preserve my sanity in testing this.
2021-04-30 21:31:20 -05:00
community Added screenshot 2019-04-15 11:17:10 +01:00
guide add 07 guide code 2017-05-30 02:52:33 +02:00
lights replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
platformer replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
shader shader: fix wavy build 2018-11-22 05:34:14 +02:00
smoke replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
typewriter minorly simplify typewriter example 2017-05-28 00:06:29 +02:00
xor replace complex128 Vec with a struct 2017-05-21 19:25:06 +02:00
.gitignore Add go.mod to pixel-examples 2021-04-30 21:31:20 -05:00
LICENSE Add README and LICENSE 2018-09-03 23:33:14 +02:00
README.md Add go.mod to pixel-examples 2021-04-30 21:31:20 -05:00
go.mod Add go.mod to pixel-examples 2021-04-30 21:31:20 -05:00
go.sum Add go.mod to pixel-examples 2021-04-30 21:31:20 -05:00

README.md

Pixel Examples

This repository contains a few examples demonstrating Pixel's functionality.

To run an example, navigate to its directory, then go run the main.go file. For example:

$ cd platformer
$ go run main.go

Here are some screenshots from the examples!

Lights Platformer
Lights Platformer
Smoke Typewriter
Smoke Typewriter
Raycaster Starfield
Raycaster Starfield

Suggested Windows Setup

Alternatives are possible, but on a fresh machine these work.

  1. Install Go for Windows.
  2. Install CGo with MinGW64 using these instructions.