Skip to content
/ rpg Public

OpenGL cross platform topdown 2d magic action rpg game single player arpg

License

Notifications You must be signed in to change notification settings

aerth/rpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lets make a game

2D, top-down, pixelized magic action RPG

contributions very welcome (see roadmap)

demo

Build Status

screenshot

INCLUDED TOOLS

  • aerpg - play the demo rpg: explore map, kill skeletons, pick up loot, gain xp, collect magic items

  • mapmaker - create/edit a map: read source code for keymap

  • mapgen - generate a map: run mapgen ______ to use specific seed such as mapgen mycoolseed

FETCHING DEPENDENCIES

  • install Go: go

  • install C dependencies: apt-get install xorg-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libopenal-dev libasound2-dev

  • fetch this source code and dependencies: go get -v -d -u github.com/aerth/rpg/cmd/...

INSTALLING AERPG GAME

Requirements

If you're using Windows and having trouble building Pixel, please check this guide on the wiki.

PixelGL backend uses OpenGL to render graphics. Because of that, OpenGL development libraries are needed for compilation. The dependencies are same as for GLFW.

The OpenGL version used is OpenGL 3.3.

  • On macOS, you need Xcode or Command Line Tools for Xcode (xcode-select --install) for required headers and libraries.
  • On Ubuntu/Debian-like Linux distributions, you need libgl1-mesa-dev and xorg-dev packages.
  • On CentOS/Fedora-like Linux distributions, you need libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel packages.
  • See here for full details.

The combination of Go 1.8, macOS and latest XCode seems to be problematic as mentioned in issue #7. This issue is probably not related to Pixel. Upgrading to Go 1.8.1 fixes the issue.

Compiling

go get -v -d github.com/aerth/rpg GOBIN=$PWD go install github.com/aerth/rpg/cmd/...

keymap:

  • Pause, Inventory, Char Stats: i

  • Movement: arrows, asdw, hjkl, hold right mouse

  • Zoom: mouse wheel

  • Identify tile: left click

  • Pick up loot: left click

  • Attack (manastorm): space middle click

  • Attack (magic bullet): B left click (point/shoot)

  • Quit: ctrl+Q

CHEATS

  • Toggle show enemy paths: =

  • Toggle fly mode: caps lock

  • Mana potion: 1

  • Health potion: 2

  • XP potion: 3

  • Speed up time: LSHIFT

  • Slow motion: TAB

  • Random Loot: ctrl+L (random location), ctrl+K (under mouse)

  • Spawn fresh mob: M (watch FPS go down)

ROADMAP

  • Regions (separated by doors)

  • Doors/Portals connect regions

  • Spawn tiles (instead of random tile) (should be Rectangle)

  • Map editor improvements (toolbar, pallet, fix offsets)

  • Text boxes (space to speed past conversations, pgup pgdown scroll)

  • Text Input (cheat codes, debug, chat, user input)

  • Pick up loot

  • Drop item

  • proper Inventory and Wearing

  • Optimization

  • Replace spritesheets, allow texturepacks, skins

  • "Stage 1" map and missions, villages with markets, npcs, enemies, and a generated dungeon with bad guys and a boss

  • D2 style multiplayer co-operative and chat (no p2p)

questions / support / donations

donations support the author and will make more frequent updates

BTC: https://blockchain.info/address/1ANjiTNvdEM6Me3yc4EBFSkDb4db4XW6pr

PayPal Me: https://www.paypal.me/aerth

questions and comments can be directed to the email address published at https://github.com/aerth

credits