Skip to content

Ducanger/Flappy-Doge-SDL2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

  1. Introduction
  2. Features
  3. How to play
  4. Installation

Introduction

  • The game is inspired by the dog Kabosu - one of the hottest memes from 2013 until now and Flappy Bird - the famous Vietnamese game developed by Nguyen Ha Dong in 2013.
  • Flappy Doge was created using SDL2 and C++.

*The resources used in the game are collected from the Internet and most of them have been edited to suit the property of the game, the edit files are saved at the path ./code/res/psd.

Features

1. GameWindow

  • Handles collisions between characters and pipes, the ground, and borders on windows.
  • Handles the player's key/mouse actions.
  • Display score, game status icon (play/pause).
  • The ground, moving characters make the game more realistic.
  • Limit FPS to be compatible with all devices (if not, when running the game on a high-configuration machine, the image will be rendered too fast, causing the "fast forward" effect).

2. TabPause

  • Enable/Mute the game.
  • Light/Dark interface (changes immediately after selection).
  • View current score, highest score.
  • Play next icon.

3. TabGameOver

  • Display medals corresponding to the number of points (Gold > 50, Silver > 20, Honor <= 20).
  • View current score, highest score.
  • Play next icon.

How to play

  • Click mouse or press SPACE/UP key to play.
  • Press ESC to pause.
  • Video demo at Youtube.

Installation

After installing Mingw64, SDL2, SDL_Image, SDL_TTF, và SDL_Mixer, run Flappy Doge.exe to enter the game.

* You may not need to install SDL2, SDL_Image, SDL_TTF and SDL_Mixer because the .dll files are already in the ./res/sdl path.