GithubHelp home page GithubHelp logo

thiagoharry / pacman Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 20.79 MB

A Pac-Man clone using Weaver Engine

License: GNU Affero General Public License v3.0

Makefile 0.11% C 99.57% GLSL 0.28% C++ 0.04%

pacman's Introduction

pacman

A Pac-Man clone using Weaver Engine, play this game at: https://thiagoharry.github.com/pacman

Game Controls

  • ARROW KEYS: Control pacman and the cursor at title screen

  • ENTER: Select option in the title screen.

Compiling the game

This is a game inspired by classical Pac-Man written in C using the Weaver Game Engine. The game can be compiled in a Linux environment with a C compiler and GNU Make.

Compiling the game as a Linux executable

First install the dependencies. In Ubuntu, Linux Mint and related distros, the following command should work:

sudo apt-get install build-essential libx11-dev mesa-common-dev libxrandr-dev libglew-dev libopenal1 libopenal-dev vim-common libpng16-dev libmpg123-dev

In other distros, research how to install the equivalent packages.

Check file conf/conf.h and change the line which starts with #define W_TARGET to:

#define W_TARGET W_ELF

Then run the command make and make install as root. And finally you can run the game with pacman at the command line.

Compiling the game as a web page

First install the dependencies. In Ubuntu, Linux Mint and related distros, the following command should work:

sudo apt-get install emscripten vim-common

But you must ensure that Emscripten is in version 1.34.0 or greater. Otherwise, uninstall it and install from another source. In other distros, research how to install the equivalent packages.

Check file conf/conf.h and change the line which starts with #define W_TARGET to:

#define W_TARGET W_WEB

Then run the command make. It should produce a directory called docs where you can open the file index.html in a web browser to play the game.

Credits

Created and programmed by
Images and illustrations created by
Sound effects created by
Music created by

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.