ToTF, a roguelike written in Python

If it doesn't relate to Debian, but you still want to share it, please do it here

ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-03 18:57

Hello guys, and sorry for being away for so long.

I have been busy trying to develop something, and since this is my first time actually coding something, I decided to write it using python3.
I like games, and I love RPGs, so I went with a classic roguelike. I thank the guys at RogueBasin for making a python-libtcod tutorial for beginners such as myself. I tried to give it some of my charm, tweaked it a bit, then went in and tweaked a lot :D

Anyway, it is just a beginning, but here is Tombs of the Forgotten:
https://gitlab.com/whellerof4te/totf

EDIT: The project has been moved to GitLab.
Last edited by Wheelerof4te on 2019-08-11 15:24, edited 1 time in total.
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

Postby Head_on_a_Stick » 2019-08-03 21:31

Looks interesting, thanks for sharing.

I notice the licence is GPL but you have included the Arial font, which is incompatible with that licence: https://www.fonts.com/font/monotype/arial/licenses

Perhaps use Liberation Sans instead? It is metrically identical.
User avatar
Head_on_a_Stick
 
Posts: 10321
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-03 21:47

Thank you very much for feedback :)

I'll change the font image as soon as I can.
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-06 13:36

I added spells to the game in the latest release:
https://github.com/wheelerof4te/ToTF/re ... g/0.1.2rc2

Now, since the player has become much more powerful, it's time to buff some monsters with their own spells :D
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

Postby n_hologram » 2019-08-06 16:02

Nice way to jump into programing \m/

I'm curious: what drove the choice for global functions and variables throughout the script?

I'll test it when I get internet again.
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing

the crunkbong project: scripts, operating system, the list goes on...
n_hologram
 
Posts: 452
Joined: 2013-06-16 00:10

Re: ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-06 16:35

^ Yes, python is a great starter language :)

n_hologram wrote:I'm curious: what drove the choice for global functions and variables throughout the script?

Probably the tutorial's style, as it's written with globals in mind. I am moving away from them as I extend the code, local functions are much more readable.
Examples are the new use_bow() and cast_firebite() functions, where I declared the variables only for that function instead of making a constant.
n_hologram wrote:I'll test it when I get internet again.

Thanks!
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-11 15:28

I moved the project to GitLab, and released an official 0.1 version:
https://gitlab.com/whellerof4te/totf/-/releases
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

Postby Wheelerof4te » 2019-08-16 20:33

New version is available:
https://gitlab.com/whellerof4te/totf/-/releases
New features in this version:

- This version adds graphical tiles to the game. Finally, no more ASCII characters.
- New enemy mage.
- New spell, Lightning Storm.
- Some monsters have more spells and abilities.
- Better victory message.
- Other misc stuff.
Wheelerof4te
 
Posts: 1418
Joined: 2015-08-30 20:14


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable