Temple of The Roguelike Forums
Announcements => Other Announcements => Topic started by: jofadda on September 29, 2011, 06:18:33 AM
-
i am wanting tutorials for a coding language that is easy to learn, that will build up my coding skills from nothing to able to make a roguelike, im not asking for a dummies guide for roguelike coding before some of you state such a thing doesnt exist, im wanting an easy to learn coding language and tutorials to build me up to making a roguelike, that said, ive heard from some people who do coding that python isnt too hard to learn/understand, but im looking for the easiest language to learn whilst still being able to make a roguelike later on(ive got a few base ideas for my rl atm but not much)
-
scratch what i said in my above post about needing a easy coding language, im going to do it in python and libtcod, as i found a tutorial on the matter
http://roguebasin.roguelikedevelopment.org/index.php/Complete_Roguelike_Tutorial,_using_python%2Blibtcod
just some quick questions though
do i just use a blank .txt document for typing all the code up, like in a web page design, or making a basic mod for some games?
and if i do what do i change the extention to after?
if not what do i use?
-
do i just use a blank .txt document for typing all the code up, like in a web page design, or making a basic mod for some games?
and if i do what do i change the extention to after?
if not what do i use?
Yeah, just edit as a plain text file, and give the extention *.py. Afterwards, you can execute from a shell/console with "python my_script.py".
FWIW, I started out more or less as you seem to, knowing next to nothing and choosing python. After getting started with some online tutorials, I enjoyed the book "Learning Python" by Mark Lutz and David Ascher. I'm also a fan of "Python Pocket Reference" by the same M. Lutz.
And remember, the official documentation (www.python.org/doc/) is not to be missed! It basically contains all you will ever need to know.
After a few years of lazy development. I have a decent enough engine for a coffee break RL. But at some point, it became neccessary to refactor (rewrite code) to make up for some early mistakes, and the project is currently at a standstill. So take my advice with a grain of salt ;)
As always,
Minotauros
-
Be sure to copy what other python libtcod games have done. Also for actual file editing I recommend Notepad++.
-
for editing, im just going to use notepad, but could someone please explain some of the lines of code in this tutorial
http://roguebasin.roguelikedevelopment.org/index.php/Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_1
the tutorial explains very little, and it just feels like im copying code without doing anything, also i understand the first peice of code the tutorial says is needed
SCREEN_WIDTH = 80
SCREEN_HEIGHT = 50
LIMIT_FPS = 20
thanks in advance
-
Thank you guys! It's really hard to start but i hope i would become better and better.
-
could someone please explain some of the lines of code in this tutorial
http://roguebasin.roguelikedevelopment.org/index.php/Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_1
Could you be more specific about what you need here? The tutorial goes into what each block of code does, and that (combined with a working knowledge of Python itself) explains a great deal. Where are the holes in your understanding?