pixels/examples/invaders
Jay Oster b76ae1f7bc
Update winit to 0.25 (#168)
- Update winit
- Update egui_winit_platform
- Update imgui_winit_support
- Fix hyperlink and resize in `egui-winit` example
2021-05-29 02:18:48 -07:00
..
simple-invaders Various fixes (#154) 2021-03-29 00:52:43 -07:00
src Rename resize to resize_surface (#149) 2021-03-09 04:15:24 -08:00
Cargo.toml Update winit to 0.25 (#168) 2021-05-29 02:18:48 -07:00
README.md Fix dependency bloat (#67) 2020-04-13 10:12:18 -07:00

Pixel Invaders 👾

Pixel Invaders

The pixels have invaded!

Running

cargo run --release --package invaders

Controls

Left Right Move tank

space Fire cannon

Goal

Shoot all of the invaders before they reach Earth and begin a hostile takeover. Be careful, because the entire fleet is coordinated and acts as a hive mind. Their aggression increases as their numbers dwindle.

Architecture

Pixel Invaders uses the simple-invaders crate for all game logic and drawing. Be sure to check out that crate if you are interested in any of the inner workings of the game.

This example is simply glue code that uses winit for windowing/event handling and keyboard input. The winit event loop is used to drive the simple-invaders state and rasterize each frame. Finally, pixels takes the rasterized frame buffer and sends it to the screen, optionally through a series of render passes.