Coder Social home page Coder Social logo

andres6936 / barbarian Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 499 KB

A RogueBarbarian-like - created as an attempt to follow the famous Python3 Roguelike tutorial using C++ and SDL2 as part of the r/roguelikedev 2018 Tutorial Tuesday Challenge. Project Original: https://github.com/zwilder/Barbarian

Home Page: https://wsl-blog.com/tags/barbarian/

License: GNU General Public License v3.0

CMake 0.23% C++ 99.77%
roguelike sdl2 game

barbarian's Introduction

Barbarian!

Barbarian Logo

A RogueBarbarian-like - created as an attempt to follow the famous Python3 Roguelike tutorial using C++ and SDL2 as part of the r/roguelikedev 2018 Tutorial Tuesday Challenge.

The master branch has the current ('stable') version of the game, which is currently finished with Part 13 of the tutorial, you can see the source for each part by checking the tags under branches.

I'll be updating the blog with my thoughts and rambles about this project.

Building Barbarian! From Source

So far, the build process has only been tested on Arch Linux. For most flavors of Linux, building should look like this:

  • Make sure you have the SDL2 libraries installed from your package manager
  • Open a terminal window, and navigate to your Downloads directory
  • git clone https://github.com/zwilder/barbarian
  • cd Barbarian
  • make -- Tip: add the -j flag with the number of threads you want to speed up compile time (ie -j4)
  • make clean -- This is optional, but will remove all the random build files cluttering the directory after make

Adding compile instructions for other operating systems will be the first thing I tackle after the 7 week challenge is over.

Playing the Game

  • Move the player with the VI keys, the number pad, or the arrow keys
  • i Inventory: Open your inventory, and then the letter corresponding to the item you wish to use
  • d Drop: Open your inventory, and then the letter corresponding to the item you wish to drop
  • g Get: Pickup an item
  • <shift>+ l Look: Use the movement keys to look around, Enter or Escape to exit look mode
  • F1 Fullscreen mode (may be wonky - again, haven't tested on anything other than Arch Linux)
  • <shift>+q or <ctrl>+q Quit
  • The game saves on quitting. Select Load Game from the main menu to continue!

barbarian's People

Contributors

andres6936 avatar zwilder avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.