All Projects → skatiyar → Pacman

skatiyar / Pacman

Licence: mit
Classic pacman with procedurally generated infinite vertical maze.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Pacman

Dotnet Console Games
Game examples implemented in .NET console applications primarily for educational purposes.
Stars: ✭ 157 (-29.6%)
Mutual labels:  game, pacman
Antipacman
HTML5 Pac-Man game with gesture recognition
Stars: ✭ 81 (-63.68%)
Mutual labels:  game, pacman
Radius Raid Js13k
Radius Raid is a space themed shoot 'em up where you must blast away unrelenting enemies before they destroy you. The game features 13 enemy types, 5 powerups, parallax backgrounds, retro sound effects, and locally stored stats.
Stars: ✭ 215 (-3.59%)
Mutual labels:  game
Stealthgameudemy
C++ Stealth Game in Unreal Engine (Udemy Project)
Stars: ✭ 221 (-0.9%)
Mutual labels:  game
Wolvenkit
Mod editor/creator for RED Engine games. The point is to have an all in one tool for creating mods for the games made with the engine.
Stars: ✭ 218 (-2.24%)
Mutual labels:  game
Etlegacy
ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license.
Stars: ✭ 212 (-4.93%)
Mutual labels:  game
Pss
This is a based plug-in framework that provides cross-platform IO and logically separated plug-in services.
Stars: ✭ 219 (-1.79%)
Mutual labels:  game
Ogsr Engine
OGSR Project - Evolution of X-Ray Engine for S.T.A.L.K.E.R.: Shadow of Chernobyl
Stars: ✭ 213 (-4.48%)
Mutual labels:  game
Masterplan
MasterPlan is a project management software / visual idea board software. It attempts to be easy to use, lightweight, and fun.
Stars: ✭ 221 (-0.9%)
Mutual labels:  game
Vange Rs
Rusty Vangers clone
Stars: ✭ 218 (-2.24%)
Mutual labels:  game
Fairdicegame
open-sourced, rig-resistant and verifiably fair dice game
Stars: ✭ 221 (-0.9%)
Mutual labels:  game
Casinosclient
果派德州客户端源代码,使用Unity3D引擎。
Stars: ✭ 217 (-2.69%)
Mutual labels:  game
Pont
An online board game in Rust and WebAssembly
Stars: ✭ 218 (-2.24%)
Mutual labels:  game
Ivan
Iter Vehemens ad Necem - a continuation of the graphical roguelike by members of http://attnam.com
Stars: ✭ 219 (-1.79%)
Mutual labels:  game
Awesome Haxe Gamedev
Resources for game development on haxe
Stars: ✭ 213 (-4.48%)
Mutual labels:  game
Opmon
Currently moving the project to https://github.com/OpMonTeam/OpMon-Godot
Stars: ✭ 221 (-0.9%)
Mutual labels:  game
Destinationsol
Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Stars: ✭ 214 (-4.04%)
Mutual labels:  game
Iw4x Client
🎮 Official IW4x source code
Stars: ✭ 218 (-2.24%)
Mutual labels:  game
Unitybubblegame
BubbleGame《天天萌泡泡》是一款简单好玩的消除游戏,点击三个或以上同颜色、相连接的泡泡来进行消除,简单而有趣。
Stars: ✭ 216 (-3.14%)
Mutual labels:  game
Rustarok
Multiplayer, fast-paced Moba style game
Stars: ✭ 223 (+0%)
Mutual labels:  game

Pacman

Go to game Go Report Card

Classic Pacman with procedurally generated infinite vertical maze.

Sample

Motivation

I came across Eller's algorithm for maze generation, a few months back. Eller's algorithm creates a perfect maze, by generating next row, on basis of current row. Giving us ability to create maze with infinite rows.

Since then I have been toying with idea of creating a game around it. It wasn't until a few days ago that I finally decided to use Pacman as the basis for game. I had experimented with Ebiten 2D game engine a bit and this gave me a good opportunity to use it. For maze generation I slightly modified Eller's algorithm to create non-perfect mazes.

Build

Using go get & without go modules.

$ go get -u github.com/skatiyar/pacman
$ cd skatiyar/pacman
$ go get ./...
$ cd build/pacman #goto build dir
$ go build -o pacman main.go
$ ./pacman

Using git clone & go modules.

$ git clone https://github.com/skatiyar/pacman.git
$ cd pacman/build/pacman #goto build dir
$ go build -o pacman main.go
$ ./pacman

Build gh-pages

Golang code is converted to JS by using gopherjs. Ebiten supports browsers by using webgl.

Note: Setup repo beforehand, as shown above.

To build just go code.

$ go get -u github.com/gopherjs/gopherjs
$ cd pacman/build/pacman
$ gopherjs build --tags=pacman --output=pacman.js

To build gh-pages.

$ go get -u github.com/gopherjs/gopherjs
$ cd pacman/build/pacman-pages
$ yarn install && yarn build

How to play

  • Use arrow keys to move pacman.
  • Gain points by eating dots.
  • Ghosts try to chase player and on collision player looses a life.
  • Player starts with 5 lives and can have upto 7.
  • Collect diamond to increase lives.
  • Use flask to gain ability to destroy ghosts, ability lasts for 10 Sec & ghosts try to runaway from player.
  • Eating a running away ghost gives a bonus of 200 points.

Thanks to

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].