2

I recently started following this tutorial on how to make a roguelike with Python. I have the first part of the code written(posted below) that draws and lets you control the player, but I'm not sure how exactly to run this and test it out. Also, I have Python installed, and I'm using Notepad++. Can someone help to figure out how to run my .py scripts?

2

2 Answers 2

3

Download the plugin PyNPP it will help with development in Notepad ++ haven't played with it too much though. Has options to customize your run options. Has a shortcut as well to launch quickly.

Hope this helps.

1
  • Actually, I just got it to work, kinda... It runs the script, but I get this message: "libtcod 1.5.1 SDL: cannot load terminal.png 'Press any key to continue...'". I'm not sure what this means. Can somebody help me figure this out? Thanks a lot Commented Mar 6, 2013 at 1:49
1

As the first comment says, type python myscript.py into the commandline.

It may be worth familiarising yourself with command line before trying your hand at programming; it's not particularly hard, and learning it all at once will be easier than learning the bits and pieces you need as they come up.

1
  • Actually, it turns out an image was missing from the folder, so it wouldn't run. Now I got it. Thanks for the replies everyone! Commented Mar 6, 2013 at 1:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.