/pong

Rust implementation of famous Pong game using camera for input and a projector for output.

Primary LanguageRust

Pong

Again?

This pong game is somewhat original in the input and output interface. It is meant to be projected on a single coloured surface (ideally white) by a projector. The projector's lamp should be headed towards the Earth's core to follow the shortest line in the space.

...

The projector projects the game on a table. There is a camera next to the projector watching the movement of whatever the user chooses to control their paddle with. It can be their finger, a pen or an RC car.

Installation

Install ggez dependencies with apt-get install libasound2 alsa-utils alsa-oss libasound2-dev libudev-dev.

Run apt-get install libv4l-dev solve linking error:

  = note: /usr/bin/ld: cannot find -lv4l2
          collect2: error: ld returned 1 exit status

Content for article

Gtk-rs

Installation

sudo apt-get install libgtk-3-dev

Useful links

The documentation link with requirements and a simple example.

What's changing with file upload and image rendering.

Paint app using boxes and buttons.

Media toc is an amazing gtk application with lots of resources.

Glade is a gtk designer software. sudo apt-get install glade

Sciter had too ugly scripting language.

Conrod looked juicy but no documentation as it's WIP.

Electron app with Rust article pointed me towards ggez.