Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ToTF, a roguelike written in Python

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

ToTF, a roguelike written in Python

#1 Post by Wheelerof4te »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: ToTF, a roguelike written in Python

#2 Post by Head_on_a_Stick »

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.
deadbang

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#3 Post by Wheelerof4te »

Thank you very much for feedback :)

I'll change the font image as soon as I can.

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#4 Post by Wheelerof4te »

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

n_hologram
Posts: 459
Joined: 2013-06-16 00:10

Re: ToTF, a roguelike written in Python

#5 Post by n_hologram »

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...

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#6 Post by Wheelerof4te »

^ 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: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#7 Post by Wheelerof4te »

I moved the project to GitLab, and released an official 0.1 version:
https://gitlab.com/whellerof4te/totf/-/releases

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#8 Post by Wheelerof4te »

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: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#9 Post by Wheelerof4te »

New version, 0.3 is available for download! This is a special release, because from now on the Linux binaries are included :)
The release page is here:
https://gitlab.com/whellerof4te/totf/-/releases
This is mostly a minor release, but also the first release with a ready-to-use Linux binary.

- Added some new content, mostly for the mage gameplay
- Fixed a bug where Forgotten will stop attacking the player once it used it's spell
- Merchant Lau has more items to sell

Link to the binary: https://drive.google.com/open?id=12WaX7 ... 0Krt_GmCwm

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: ToTF, a roguelike written in Python

#10 Post by Wheelerof4te »

A new, final version is available. Future releases will be only maintenance fixes.
https://gitlab.com/whellerof4te/totf/-/releases
This is a final release version of ToTF. Future releases will be minor bug and maintenance fixes.
Features:

- A new miniboss at dungeon level 9.
- New items, including boss items
- Forgotten is now a final boss instead of a mere monster
- Misc fixes to items
Lint to the binary: https://drive.google.com/open?id=1mMUxB ... JbiKC4tGM9

Post Reply