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.
- Week 1: Parts 0-2: Setting up the project, getting the
@
moving, setting up the map. - Week 2: Parts 3: The switch to SDL, dungeon generation.
- Week 3: Part 4: FoV and Bresenham's line drawing.
- Week 3b: Part 5: Adding entities, scheduling and pathfinding.
- Week 4: Part 6-7: Combat and a (rough) UI!
- Week 5a: Part 8: Items and inventory!
- Week 5b: Part 9: Targeting functions and spells.
- Week 6: Part 10-11: Saving and player advancement .
- Week 7: Part 12-13: Randomization and equippable items.
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.
- 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 used
Drop: Open your inventory, and then the letter corresponding to the item you wish to dropg
Get: Pickup an item<shift>+ l
Look: Use the movement keys to look around,Enter
orEscape
to exit look modeF1
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!