Git Product home page Git Product logo

frogger's Introduction

Frogger (GoT)

This a simple frogger-like game developed as an exercise to coding and software development. Using the Allegro library and basic concepts of the C programing language, this project was developed as an introduction me to the many aspects of programing. It contains some simple concepts such as file management, frame refresh rate, input keyboard commands, and others.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

To run the game in your local machine, you will need only a C compiler and the Allegro library installed in your computer.

Instructions on how to install the Allegro library can be found at: https://www.allegro.cc

Compiling and running the game

After the Allegro library is installed, clone the repository to your local machine. Open the Terminal (MacOS) or the Command Prompt (Windows) at the cloned folder and run the following command:

gcc -o frogger main.c -lallegro -lallegro_main -lallegro_image -lallegro_font -lallegro_ttf -lallegro_primitives -lallegro_audio -lallegro_acodec

This should generate a compiled file of your game with the name frogger. Now simply run the compiled game by running the following command in the command line.

For MacOS:

./frogger

and for Windows:

frogger

It should be noted that, although these steps should work on any platform, this program was tested on MacOS only.

How to play

This section consists of a basic walk-trough the game and its basic commands.

Choosing your character

As soon as you start the game, you should be directed to a character selection screen. You will have five different possible playable characters to choose from. Simple press the letter that is to the right of your chosen character's name and the game will start.

init_screen

Playing the game

After choosing your character, the game will start. The playable character will be at the bottom of the screen and there should be ten zombies running horizontally at random speeds throughout the rest of the screen.

game_screen

The objective of the game is to get your character to the top of the screen without colliding with any zombies. You can use both the WASD keys or the arrow keys of your keyboard to control your character.

Should you manage to get to the top, you will move to the next level, where the average speed of the zombies will have increased slightly.

If at any time you colide with a zombie, you will be moved to the game over screen. Here you can choose to restart the game from level 1 by pressing s or quit the game by pressing n.

lost_screen

You can quit the game at any time by pressing the ESC key.

Authors

frogger's People

Contributors

shimianto avatar

Stargazers

V Smol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.