Author Topic: SLAUGHTERHOUSE: My first attempt at a Roguelike  (Read 4356 times)


  • Newcomer
  • Posts: 6
  • Karma: +0/-0
    • View Profile
    • Email
SLAUGHTERHOUSE: My first attempt at a Roguelike
« on: February 23, 2012, 11:29:17 PM »
I coded this in about six days or so, between last Thursday afternoon and yesterday evening.

I tried this out on my FaceBook friends, but I don't think any of them know what a Roguelike is, so hopefully someone here will try the game and offer me some feedback.

"SLAUGHTERHOUSE" was coded with pretty much only the instructions offered in the Roguelike Tutorial at RogueBasin, whose existence I am extremely grateful for.

Some things I would like to change about the game but don't yet know how:
--There are a lot of firearms in the game, but they all only have one shot because I don't know how to code an ammunition system.
--Because there is no ammo system, but some weapons would (in reality) carry multiple shots, I increased the blast radius of those weapons (to simulate spraying multiple targets). Unfortunately, this often results in the player taking damage from his own attacks.
--All of the weapons use more or less the same combat method as for the "fireball spell" in the Tutorial. I want to figure out how to add a maximum range to this feature.
--There is presently no objective or goal of any sort in the game. You just wander around and kill things until there's nothing left to kill, then I suppose you can start over and do it again. But that's boring.
--Maybe it did and I wasn't paying attention, but I don't recall the Tutorial telling me how to actually save a game. (Perhaps that's why I should not depend on tutorials!)

If anyone has any suggestions, please keep in mind that I just started doing this in earnest about a week ago, and I don't know much that isn't in the Tutorial. I feel like I need a "Python For Dummies" book or something. I only have very basic skills at this point.

In the meantime, I will continue searching the Internet and these forums for answers to my problems, because I have heard that that's the best thing to do.

Anyway, here's the game:

Read the readme (which I made as a Word document for some reason) for how to put the game on your computer (it isn't an installer package). I made "SLAUGHTERHOUSE" on a computer running Windows and compiled it into an exe with Pyinstaller, so I think you might need a Windows computer yourself. I really don't know.

To anyone who will try out my game, thank you so much! If you have any feedback, don't hesitate to contact me either here or at, and don't worry about offending me--it's my first game, so I'm sure it's got problems.   


  • Rogueliker
  • ***
  • Posts: 259
  • Karma: +0/-0
    • View Profile
    • pyherc
Re: SLAUGHTERHOUSE: My first attempt at a Roguelike
« Reply #1 on: February 25, 2012, 08:45:37 AM »
This is nifty :D

I tried couple of times and died horribly in both times. On the second time I found sawn-off shotgun which sure did some nice damage.

I liked that you can see what letters represent by taking mouse on top of them and pressing some key. Would be even better if you wouldn't have to press anything, but it would automatically show it.

Would there be any chance to have a look at the source code? I'm not particularly good with Python, so it would be interesting to see how others tackle writing roguelike on it.

Keep us posted on the progress. Are you planning to add some sort of boss monster on the slaughterhouse at the end?
Everyone you will ever meet knows something you don't.
 - Bill Nye


  • Newcomer
  • Posts: 41
  • Karma: +0/-0
    • View Profile
    • Amulet of Yendor
Re: SLAUGHTERHOUSE: My first attempt at a Roguelike
« Reply #2 on: March 01, 2012, 10:31:27 PM »
Which tutorial did you base your game off of?  Unless I'm mistaken there are at least a few different ones on RogueBasin.

Ah nevermind, I see you're referring to the python+libtcod tutorial.

One of the shortcomings of that tutorial is the interface it uses, keyboard for movement and everything else but mouse for ranged weapons/spells.  If it uses mouse for spells/range weapons it should have mouse movement and menus too.  If it uses keyboard for movement, you should be able to target with keyboard too.

Of course, that will require some additional coding not covered in the tutorial.
« Last Edit: March 01, 2012, 10:39:47 PM by NeedsFoodBadly »
Amulet of Yendor: Roguelike news for Rogues by Rogues! | Roguelinks
Crapsoft Studios: "We keep the seat up!"