Author Topic: practicerl - A Practice Roguelike for me practice with!  (Read 17617 times)

doulos05

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
practicerl - A Practice Roguelike for me practice with!
« on: June 05, 2016, 12:20:25 PM »
I like roguelikes, and so I want to try creating one. At first, I'll simply be following the libtcod for python tutorial to get a hang of how this works. But, due to technical errors (errors which cost me a grand total of 4.5 hours of coding time spent staring at various g++ compiler errors going "********* THIS IS WHY I USE INTERPRETED LANGUAGES!") it will be implemented in Python 3.4.3 using just the builtin curses library.

I fully expect that to lead to all kinds of... fun when I get to things like A*, FOV, and level creation, but that's the limitations imposed by my dev environment. On a related note, if anybody has experience getting libtcod, cffi, and/or tdl to install on a 64 bit Chromebook and would like to share that with me, I'd be most grateful if you could pass that wisdom on.

https://github.com/jonathanabennett/practicerl

Right now, this repo just has my curses test to ensure curses would even work using a CodeAnywhere container, and a readme describing in more detail just what I'm hoping to accomplish. Feedback is welcome, but anybody telling me to try another language will be ignored. I'm doing this as a hobby for fun in my free time. My day job already has me learning Javascript. Until I learn that, I'm not going to try picking up Ruby, Java, or (God forbid) C++ so I can do a fun hobby in my free time. And I'm not implementing anything as complex as a Roguelike in Javascript. I'd rather beat my brains out with a large hammer.

Krice

  • (Banned)
  • Rogueliker
  • ***
  • Posts: 2316
  • Karma: +0/-2
    • View Profile
    • Email
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #1 on: June 05, 2016, 12:50:13 PM »
which cost me a grand total of 4.5 hours of coding time spent staring at various g++ compiler errors

Why did you stare at compiler errors for 4.5 hours?

doulos05

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #2 on: June 05, 2016, 01:27:49 PM »
which cost me a grand total of 4.5 hours of coding time spent staring at various g++ compiler errors

Why did you stare at compiler errors for 4.5 hours?
Well, first cffi wouldn't compile because my g++ wasn't up to date. Then tdl wouldn't compile because the correct SDL libraries weren't installed. Then libtcod wouldn't compile because 32bit vs. 64bit. So I switched to pygame and pygcurses for Windows compatibility. Which promptly refused to compile to Python3, though it happily did so for python2.7. At this point, I was about to throw in the towel completely when I read that codeanywhere gives you an SSH term inside your browser, meaning I can do it all from inside Chrome on my chromebook.

doulos05

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #3 on: June 05, 2016, 02:56:29 PM »
I've got code up to implementing the map created. If someone was feeling really generous and wanted to have a look at it and let me know what they thought, I'd appreciate it. Quick note though, this is literally the first time someone I don't know has looked at code I've written. Please be nice, I'm looking for actionable criticism like "When I do (x), I usually do it this way." Rather than just "That's a pretty crappy way to do (x), what were you thinking?!"

AgingMinotaur

  • Rogueliker
  • ***
  • Posts: 805
  • Karma: +2/-0
  • Original Discriminating Buffalo Man
    • View Profile
    • Land of Strangers
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #4 on: June 05, 2016, 06:20:15 PM »
Is it possible you tried to install Pygame for Python 2.7 on top of a Python 3 installation? There is a separate archive for compatability with Python 3. Also, if you're on Linux, shouldn't you be able to do something like "apt-get install python-pygame"?

On a lighter note, if you haven't already stumbled upon it, I always found this little article to be inspirational (but not to be taken literally, of course).

As always,
Minotauros
This matir, as laborintus, Dedalus hous, hath many halkes and hurnes ... wyndynges and wrynkelynges.

doulos05

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #5 on: June 06, 2016, 12:19:11 AM »
Is it possible you tried to install Pygame for Python 2.7 on top of a Python 3 installation? There is a separate archive for compatability with Python 3. Also, if you're on Linux, shouldn't you be able to do something like "apt-get install python-pygame"?

On a lighter note, if you haven't already stumbled upon it, I always found this little article to be inspirational (but not to be taken literally, of course).

As always,
Minotauros
I have both pythons installed because most of my code is written for Python2.7 and I don't plan to update it to 3.x because I rarely, if ever, run it. Despite my best efforts, I could not get it to work. Since I'm more interested in working on a Roguelike than chasing down compatibility issues, I will keep working with my current rig until I get to something too complex for me to figure out without a library.

corremn

  • Rogueliker
  • ***
  • Posts: 700
  • Karma: +0/-0
  • SewerJack Extraordinaire
    • View Profile
    • Demise RogueLike Games
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #6 on: June 17, 2016, 11:06:17 AM »
which cost me a grand total of 4.5 hours of coding time spent staring at various g++ compiler errors

Why did you stare at compiler errors for 4.5 hours?

Was this actually Krices first ever attempt at humour? If so it *almost* was funny. But it probably wasn't meant to be humorous, so I guess all is right with the world once again.
corremn's Roguelikes. To admit defeat is to blaspheme against the Emperor.  Warhammer 40000 the Roguelike

doulos05

  • Newcomer
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #7 on: June 21, 2016, 09:47:13 AM »
Was this actually Krices first ever attempt at humour? If so it *almost* was funny. But it probably wasn't meant to be humorous, so I guess all is right with the world once again.

I took it as questioning my sanity. As in, "Why the hell would you do that to yourself? Go do something more fun and ignore the roguelike for a while!

On an unrelated note, a Python question about dictionaries and functions for those who know. I want to keep my key bindings in a Python dictionary. I also don't want to have 8 different movement functions (one for each direction). How can I store both the function and it's options in a dictionary? I tried nesting dictionaries but it's just not working for me. I'll start a new post with coffee snippets as soon as I recover from this crazy work day.

IBOL

  • Rogueliker
  • ***
  • Posts: 102
  • Karma: +0/-0
    • View Profile
    • IBOLOGY LLC
    • Email
Re: practicerl - A Practice Roguelike for me practice with!
« Reply #8 on: September 17, 2016, 03:00:26 PM »
i clicked on this post because the title made me laugh out loud.

thank you, and good luck!
Randomly Approaching The Infinite Realms.
http://ibology.org/