Skip to content

Commit f708f7c

Browse files
committed
Enable TOC for existing parts.
1 parent f0cba6a commit f708f7c

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

tutorials/python/2021/part-0.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2+
toc: true
23
---
34

45
# Part 0 - Setting Up
56

6-
#### Prior knowledge
7+
## Prior knowledge
78

89
This tutorial assumes some basic familiarity with programming in general, and with Python.
910
If you've never used Python before, this tutorial could be a little confusing. There are many free resources online about learning programming and Python, and I'd recommend learning about objects and functions in Python at the very least before attempting to read this tutorial.
@@ -14,7 +15,7 @@ The Python documentation [includes a good tutorial to get started with Python](h
1415
You should keep track of the [Python Documentation](https://docs.python.org/3/), the [NumPy Documentation](https://numpy.org/doc/stable/), and the [python-tcod Documentation](https://python-tcod.readthedocs.io/en/latest/).
1516
External references to these will be made throughout the tutorial as they become relevant.
1617

17-
#### Installation
18+
## Installation
1819

1920
To do this tutorial, you'll need Python version 3.8 or higher.
2021
The latest version of Python is recommended (currently 3.9 as of June 2021).
@@ -49,15 +50,15 @@ For example, Ubuntu can install it with the following command:
4950

5051
`sudo apt-get install libsdl2-dev`
5152

52-
#### Editors
53+
## Editors
5354

5455
Any text editor can work for writing Python.
5556
You could even use Notepad if you really wanted to.
5657
Personally, I'm a fan of [Pycharm](https://www.jetbrains.com/pycharm/) and [Visual Studio Code](https://code.visualstudio.com/).
5758
Whatever you choose, I strongly recommend something that can help catch Python syntax errors at the very least.
5859
I've been working with Python for over five years, and I still make these types of mistakes all the time\!
5960

60-
#### Making sure Python works
61+
## Making sure Python works
6162

6263
To verify that your installation of both Python 3 and TCOD are working, create a new file (in whatever directory you plan on using for the tutorial) called `main.py`, and enter the following text into it:
6364

@@ -80,7 +81,7 @@ Run the file in your terminal (or alternatively in your editor, if possible):
8081

8182
You should see "Hello World\!" printed out to the terminal. If you receive an error, there is probably an issue with either your Python or TCOD installation.
8283

83-
### Downloading the Image File
84+
## Downloading the Image File
8485

8586
For this tutorial, we'll need an image file. The default one is provided below.
8687

@@ -89,13 +90,13 @@ For this tutorial, we'll need an image file. The default one is provided below.
8990
Right click the image and save it to `/data/dejavu16x16_gs_tc.png` in your project directory.
9091
Other options for fonts [are available here](https://github.com/libtcod/libtcod/tree/master/data/fonts), but you'll need a font ending in `_tc.png` for this tutorial.
9192

92-
### Getting help
93+
## Getting help
9394

9495
Be sure to check out the [Roguelike Development Subreddit](https://www.reddit.com/r/roguelikedev) for help.
9596
There's a link there to the Discord channel as well.
9697

9798
-----
9899

99-
### Ready to go?
100+
## Ready to go?
100101

101102
Once you're set up and ready to go, you can proceed to [Part 1](part-1).

tutorials/python/2021/part-1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
toc: true
3+
---
4+
15
# Part 1 - Drawing the '@' symbol and moving it around
26

37
Welcome to part 1 of this tutorial! This series will help you create your very first roguelike game, written in Python\!

0 commit comments

Comments
 (0)