deckarep / flappy-rust

A Rust SDL2 clone of Flappy Gopher which is a clone of Flappy Bird
65 stars 4 forks source link
2d-game flappy-bird games particle-effects rust sdl2

Flappy Rust

Flappy Rust is a mostly complete clone of Flappy Gopher which is a clone of the famous Flappy Bird game developed in Rust with bindings for SDL2.

Flappy Rust

This repo was built significantly faster by referencing Francesc Campoy's version originally based in Go: https://github.com/campoy/flappy-gopher

Why did you write a clone of a clone?

Because I'm home all day after being layed off (along with 70% of the company) on Monday 4/3/2017 and decided to write some code in Rust since it's been on my TODO list AND because I need an outlet for my negative energy.

Features

Thoughts on the Go version vs the Rust version

Installation

Please reference the rust-sdl2 crate which has installation instructions for SDL2 based on your platform: https://github.com/AngryLawyer/rust-sdl2

Additionally, you'll need the following addtional dependencies:

sdl2_ttf sdl2_image sdl2_mixer sdl2_gfx

On OSX:

brew install sdl2_mixer --with-flac --with-fluid-synth --with-libmikmod
--with-libmodplug --with-libvorbis --with-smpeg2

Running

cargo run #Inside the flappy-rust repo.

Images, fonts, and licenses

All the images used in this game are CC0 and obtained from Clipart. You can find atlernative birds in there, so you can mod the game!

The fonts are copied from https://github.com/deano2390/OpenFlappyBird.

This project is licensed under Apache v2 license. Read more in the LICENSE file.