examples/

directory
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT

README

Run example locally

  • cd into directory, for example cd hello
  • go run .

Run example without cloning the Pi source code

  • go run github.com/elgopher/pi/examples/hello@latest

where hello is a directory name

Directories

Path Synopsis
Example showing how to test pressed buttons of game controllers.
Example showing how to test pressed buttons of game controllers.
Example animating HELLO WORLD text on screen.
Example animating HELLO WORLD text on screen.
Example showing how to use virtual keyboard.
Example showing how to use virtual keyboard.
Example showing how to directly modify screen memory.
Example showing how to directly modify screen memory.
Example showing practical use of palette swapping.
Example showing practical use of palette swapping.
Example showing how to use PixMap struct, which is used to store screen and sprite-sheet pixels.
Example showing how to use PixMap struct, which is used to store screen and sprite-sheet pixels.
Example showing how to print text to screen.
Example showing how to print text to screen.
Example showing how to change screen resolution and run π functions before game loop.
Example showing how to change screen resolution and run π functions before game loop.
DevTools Terminal lets you write and execute Go code live when your game is running.
DevTools Terminal lets you write and execute Go code live when your game is running.
Example showing how to draw shapes and use a mouse.
Example showing how to draw shapes and use a mouse.
Example showing how to save and load the state.
Example showing how to save and load the state.
Example plotting sin and cos on screen
Example plotting sin and cos on screen

Jump to

Keyboard shortcuts

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