Uploaded December 2013 | Updated November 2026, 5 days ago
Yay! I managed to upload a programming video this year.¹
In this tool-assisted education video I create a rogue-like game with C++11. You see me type every line.*
Read on what is a rogue-like game: en.wikipedia.org/wiki/Rogue-like
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
I create the game in seven phases:
- Phase 1 (demo at 04:23): Basic navigation in a maze.
- Phase 2 (demo at 06:51): Adding command history, repeats and aliases.
- Phase 3 (demo at 08:54): Adding colors.
- Phase 4 (demo at 20:02): The maze now has items which you can look at.
- Phase 5 (demo at 24:52): You can now pick up those items! The game has a point now.
- Phase 6 (demo at 30:30): Adding chests that you can pry open.
- Phase 7 (long demo at 32:58): Adding carts for cheaper lugging of stuff around.
The video contains English-language spoken commentary. I created the commentary in one pass without any editing (except for noise removal and compression) because my available free time before the end of the year is basically negative at this point. If you can't understand something I said or did in the video, feel free to ask in the comments! I always try to reply to every meaningful comment.
If you liked the video, Like and Subscribe! Thank you for watching!
The exact source code used in this video can be downloaded here: bisqwit.iki.fi/jutut/kuvat/programming_examples/starving_dungeonadventure
I forgot to show it in my demos, but my item parsing code also supports commas and "and" words. For example you can say "get bracelet, shirt 2 and all coins from cart" or "drop everything except iron tie and platinum bracelet" and it works just as you would expect.
List of music used:
- overture.mod by Jogeir Liljedahl, played through MikMod 2.14B1.10 in 8-bit mode
- Dual Orb - Hill theme, played through ADLMIDI
- Dual Orb - Underworld theme, played through ADLMIDI
- Lunar SSSC - Song of Blue Dragon, played through ADLMIDI
- overture.mod repeated
I actually created this game in April 2009. The last week (of 2013) I just rewrote it in modern C++, added some features, and optimized it for YouTube showcasing.
My original version from 2009 can be seen here: tasvideos.org/forum/p/197344#197344
¹) Just not the one I was planning on.
*) Except the printf-like format class, which is almost identical to boost::format(), except for the operator""_f() which is really handy.
After publishing, I now notice that the time in DOS runs very slowly for some reason. I'm not sure why. Mario is walking slowly and the seconds in the clock tick very slowly. I think it's probably four times slower than it should be. Incidentally, this was recorded at 120 fps and downsampled to 30 fps. But the typing is happening at correct speed... How odd.
EDIT: Figured it out. The CPU speed measurement (top-right corner) interferes with the clock, and I was running it thousands of times in a second. Reducing it to a few times in a second fixed the problem for videos that came after this one.
Yay! I managed to upload a programming video this year.¹
In this tool-assisted education video I create a rogue-like game with C++11. You see me type every line.*
Read on what is a rogue-like game: en.wikipedia.org/wiki/Rogue-like
Twitter: twitter.com/RealBisqwit
Patreon: patreon.com/Bisqwit (alternatives at iki.fi/bisqwit/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
I create the game in seven phases:
- Phase 1 (demo at 04:23): Basic navigation in a maze.
- Phase 2 (demo at 06:51): Adding command history, repeats and aliases.
- Phase 3 (demo at 08:54): Adding colors.
- Phase 4 (demo at 20:02): The maze now has items which you can look at.
- Phase 5 (demo at 24:52): You can now pick up those items! The game has a point now.
- Phase 6 (demo at 30:30): Adding chests that you can pry open.
- Phase 7 (long demo at 32:58): Adding carts for cheaper lugging of stuff around.
The video contains English-language spoken commentary. I created the commentary in one pass without any editing (except for noise removal and compression) because my available free time before the end of the year is basically negative at this point. If you can't understand something I said or did in the video, feel free to ask in the comments! I always try to reply to every meaningful comment.
If you liked the video, Like and Subscribe! Thank you for watching!
The exact source code used in this video can be downloaded here: bisqwit.iki.fi/jutut/kuvat/programming_examples/starving_dungeonadventure
I forgot to show it in my demos, but my item parsing code also supports commas and "and" words. For example you can say "get bracelet, shirt 2 and all coins from cart" or "drop everything except iron tie and platinum bracelet" and it works just as you would expect.
List of music used:
- overture.mod by Jogeir Liljedahl, played through MikMod 2.14B1.10 in 8-bit mode
- Dual Orb - Hill theme, played through ADLMIDI
- Dual Orb - Underworld theme, played through ADLMIDI
- Lunar SSSC - Song of Blue Dragon, played through ADLMIDI
- overture.mod repeated
I actually created this game in April 2009. The last week (of 2013) I just rewrote it in modern C++, added some features, and optimized it for YouTube showcasing.
My original version from 2009 can be seen here: tasvideos.org/forum/p/197344#197344
¹) Just not the one I was planning on.
*) Except the printf-like format class, which is almost identical to boost::format(), except for the operator""_f() which is really handy.
After publishing, I now notice that the time in DOS runs very slowly for some reason. I'm not sure why. Mario is walking slowly and the seconds in the clock tick very slowly. I think it's probably four times slower than it should be. Incidentally, this was recorded at 120 fps and downsampled to 30 fps. But the typing is happening at correct speed... How odd.
EDIT: Figured it out. The CPU speed measurement (top-right corner) interferes with the clock, and I was running it thousands of times in a second. Reducing it to a few times in a second fixed the problem for videos that came after this one.
![Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 2/9
I completed Star Control II: The Ur-Quan Masters (the open source version) without ever talking to the Earth starbase commander, Hayes, or without orbiting the starbase. WARNING: THIS VIDEO SERIES INCLUDES UNDONE SEGMENTS. IT IS LONG AND IRRELEVANT. PROVIDED FOR CURIOSITY ONLY.
Note: There are occasional video / audio glitches in the videos, but those will [hopefully] get less and less common as the game progresses, as I fixed bugs in my recording software. Unfortunately, their effect tends to cascade the longer the video is.
This is a practice / proof-of-concept run, created within a span of 7 days.
Technical information: Played in real time on Linux computer across SSH link on Cygwin desktop. Recording was done using a homebrew LD_PRELOAD library that hooked into SDL video & audio updates, and produced 32-bit zmbv+pcm mkv files. Extra calls were added to notify the recording library of save & load events, so that the finished video could be constructed from the relevant segments. Undone segments are not shown (except in the totally uncut series).
This video includes ALL the segments, even those that ended up in failure and had to be redone by loading a save.
WATCH THE FINISHED PRACTICE SERIES WITH COMMENTS, AND BORING/REPETITIVE PARTS MOSTLY CUT OUT:
Part 1: https://youtu.be/-fPtTwm_vOU
Part 2: https://youtu.be/HJc_ykXU9TY
Part 3: https://youtu.be/QI6FB62BoBQ
Part 4: https://youtu.be/2DaxgFCy8JM
Part 5: https://youtu.be/9CF-OZy5dR4
Part 6: https://youtu.be/mwoLQUKCrkE
Part 7: https://youtu.be/JUFVnDCyY1w
Part 8: https://youtu.be/fYOFJvfxDec
Part 9: https://youtu.be/1PmBct19ctA
Part 10: https://youtu.be/wIVYv_DEpak
Part 11: [tba]
Part 12: [tba]
UNCUT VIDEO (FINISHED PRACTICE SEGMENTS IN ONE VIDEO, WITHOUT COMMENTS):
[tba]
TOTALLY UNCUT SERIES (ALL PRACTICE SEGMENTS; INCLUDING THE FAILED ONES):
Part 1: https://youtu.be/ilLlvEIItkM
Part 2: https://youtu.be/h8mtdNwfoB4
Part 3: https://youtu.be/9gJzNUlBNZM
Part 4: https://youtu.be/EaB92-uGuo0
Part 5: https://youtu.be/duJ5PTvqJaE
Part 6: [tba]
Part 7: [tba]
Part 8: [tba]
Part 9: [tba]
Note: The totally-uncut series includes some very long sections where absolutely nothing happens. This is because sometimes I was off-keyboard while the game and its music was playing, and when I came back, I loaded a save.
FAQ:
Q) How does no-starbase (i.e. BGD, beating-game-differently) differ from normal game?
A) Obvious differences: No flagship upgrades / module building, no crew recruiting, no fuel-for-RU, no building of ships, no Arilou ships, no replacing of planet landers, no escaping of battles. RU is worthless. Non-obvious differences: 100% of chance of probe spawning every day in hyperspace, versus maximum of 8% in normal game. And spoilers.
Q) How does UQM differ from the PC Star Control II in terms of gameplay in BGD challenge?
A) When you emerge in hyperspace (from battle, from truespace), in the PC version you would always emerge with the ship pointing north. It means that if you wanted to go anywhere else but north, you would have to slowly crank the ship to rotate towards the desired direction. In the open source version, the ship is automatically quick-oriented towards the original direction, which is a huge boon in a challenge like this. The planet lander only holds 50 units of BIO data rather than 64, necessitating more landings. And the BIO is more aggressive.
(Your question here) Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 2/9](https://i.ytimg.com/vi/h8mtdNwfoB4/mqdefault.jpg)
![Creating a Terminal Emulator PART 6 [c++ live stream]
I am creating a special-purpose terminal emulator for my video productions. Welcome to tag along!
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Steady: https://steadyhq.com/en/bisqwit
Patreon: https://patreon.com/Bisqwit (Other options at https://bisqwit.iki.fi/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
Mailing address:
J. YLILUOMA
P.O. Box 16
FI-04301 TUUSULA
FINLAND
#programming #terminal #emulator
FAQ:
A) Linux.
A) Cinnamon.
A) Debian (Testing).
A) Joe.
A) Because to learn a new tool (to replace another you are already fluent with) requires a sizable investment in time. It’s not practical, or at least it is very difficult to justify convincingly.
A) Embedded programming.
A) Be passionate and never be afraid to experiment. Try things that are challenging and have small unknown parts, and look up the information that you need. Do that for years.
A) Sorry, I don’t really read books — beginner or otherwise. I have no idea which books are good or not. I get most of my information from the Internet by simply searching for it.
A) No downloadable playlist. The currently playing song filenames are shown on the right side of the screen at all times. You can look them up in ModArchive, but you may sometimes need to guess a bit.
Source code and more information: https://github.com/bisqwit/that_terminal Creating a Terminal Emulator PART 6 [c++ live stream]](https://i.ytimg.com/vi/hFPoDaBT7Gw/mqdefault.jpg)
![What are EXE files made of?
Almost everyone has opened an EXE file in a text editor and been mystified by the apparent nonsense. How does a computer make sense of it? Let’s uncover the illusion.
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Patreon: https://patreon.com/Bisqwit (Other options at https://bisqwit.iki.fi/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
AMD64 programmer’s manual:
https://www.amd.com/system/files/TechDocs/24592.pdf
https://www.amd.com/system/files/TechDocs/24593.pdf
https://www.amd.com/system/files/TechDocs/24594.pdf
http://developer.amd.com/wordpress/media/2012/10/26568_APM_v41.pdf
https://www.amd.com/system/files/TechDocs/26569_APM_V5.pdf
https://www.amd.com/system/files/TechDocs/43479.pdf
8086 and 8088 datasheets:
http://datasheets.chipdb.org/Intel/x86/808x/datashts/8088/231456-006.pdf
http://datasheets.chipdb.org/Intel/x86/808x/datashts/8086/231455-005.pdf
What I wore during the Tandy1000 filming (should have used black gloves too):
https://s.click.aliexpress.com/e/_9fvUsZ
https://www.aliexpress.com/item/4000388200168.html
To contribute subtitles: http://www.youtube.com/timedtext_video?ref=share&v=hhgxsrAFyz8
That’s numberwang!
The flying numbers animation is from AllDesignCreative, by V. Sudharsan.
For the Annotations Restored extension (please use!): [ar_start]tp=text,at=text,s=anchored,ts=357,te=368,t=For%20disassembling%2C%20any%20disassembler%20could%20be%20used%20for%20the%20same%20effect.%0AThe%20Tandy%201000%20does%20not%20have%20modern%20tools%20like%20%E2%80%9Cndisasm%E2%80%9D%2C%20%E2%80%9CCodeView%E2%80%9D%2C%20let%20alone%0A%E2%80%9CIDA%20Pro%E2%80%9D%2C%20%20but%20it%20does%20have%20MS-DOS%20Debugger%20%28debug.com%29%2C%20so%20I%20used%20that.,x=26.5,y 2,txsz=2.6,w=73.5,h=12,bgc=4096,fgc=16776116,bgo=1;[ar_end]
#numbers #assembler #hacking What are EXE files made of?](https://i.ytimg.com/vi/hhgxsrAFyz8/mqdefault.jpg)
![Texture Mapping & Polygon Rasterizing Tutorial (2/2) [C++20]
Textured polygons are the foundation of nearly all 3D games in existence. Used before even 3D-capable GPUs were a thing, they were rendered using nothing but software. How was that achieved? Let’s explore an easy and intuitive method. We create an extensible 3D polygon rasterizer using nothing but standard C++20 (and libSDL for 2D graphics).
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Steady: https://steadyhq.com/en/bisqwit
Patreon: https://patreon.com/Bisqwit (Other options at https://bisqwit.iki.fi/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
You can contribute subtitles: http://www.youtube.com/timedtext_video?ref=share&v=hxOw_p0kLfI
Downloads:
https://bisqwit.iki.fi/jkp/polytut/
Music list (s = SPC-OPL conversion):
— Super Mario RPG — Sunken Ship (s)
— Tales of Phantasia — Final Act (s)
— Final Fantasy V — World 1+2 (s)
— Famicom Tantei Club 2 — Interviews (s)
— Energy Breaker — Heroes’ Adventure (s)
— Final Fantasy Mystic Quest — Shrine (s) Texture Mapping & Polygon Rasterizing Tutorial (2/2) [C++20]](https://i.ytimg.com/vi/hxOw_p0kLfI/mqdefault.jpg)


![Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 1/9
I completed Star Control II: The Ur-Quan Masters (the open source version) without ever talking to the Earth starbase commander, Hayes, or without orbiting the starbase. WARNING: THIS VIDEO SERIES INCLUDES UNDONE SEGMENTS. IT IS LONG AND IRRELEVANT. PROVIDED FOR CURIOSITY ONLY.
Note: There are occasional video / audio glitches in the videos, but those will [hopefully] get less and less common as the game progresses, as I fixed bugs in my recording software. Unfortunately, their effect tends to cascade the longer the video is.
This is a practice / proof-of-concept run, created within a span of 7 days.
Technical information: Played in real time on Linux computer across SSH link on Cygwin desktop. Recording was done using a homebrew LD_PRELOAD library that hooked into SDL video & audio updates, and produced 32-bit zmbv+pcm mkv files. Extra calls were added to notify the recording library of save & load events, so that the finished video could be constructed from the relevant segments. Undone segments are not shown (except in the totally uncut series).
This video includes ALL the segments, even those that ended up in failure and had to be redone by loading a save.
WATCH THE FINISHED PRACTICE SERIES WITH COMMENTS, AND BORING/REPETITIVE PARTS MOSTLY CUT OUT:
Part 1: https://youtu.be/-fPtTwm_vOU
Part 2: https://youtu.be/HJc_ykXU9TY
Part 3: https://youtu.be/QI6FB62BoBQ
Part 4: https://youtu.be/2DaxgFCy8JM
Part 5: https://youtu.be/9CF-OZy5dR4
Part 6: https://youtu.be/mwoLQUKCrkE
Part 7: https://youtu.be/JUFVnDCyY1w
Part 8: https://youtu.be/fYOFJvfxDec
Part 9: https://youtu.be/1PmBct19ctA
Part 10: https://youtu.be/wIVYv_DEpak
Part 11: [tba]
Part 12: [tba]
UNCUT VIDEO (FINISHED PRACTICE SEGMENTS IN ONE VIDEO, WITHOUT COMMENTS):
[tba]
TOTALLY UNCUT SERIES (ALL PRACTICE SEGMENTS; INCLUDING THE FAILED ONES):
Part 1: https://youtu.be/ilLlvEIItkM
Part 2: https://youtu.be/h8mtdNwfoB4
Part 3: https://youtu.be/9gJzNUlBNZM
Part 4: https://youtu.be/EaB92-uGuo0
Part 5: https://youtu.be/duJ5PTvqJaE
Part 6: [tba]
Part 7: [tba]
Part 8: [tba]
Part 9: [tba]
Note: The totally-uncut series includes some very long sections where absolutely nothing happens. This is because sometimes I was off-keyboard while the game and its music was playing, and when I came back, I loaded a save.
FAQ:
Q) How does no-starbase (i.e. BGD, beating-game-differently) differ from normal game?
A) Obvious differences: No flagship upgrades / module building, no crew recruiting, no fuel-for-RU, no building of ships, no Arilou ships, no replacing of planet landers, no escaping of battles. RU is worthless. Non-obvious differences: 100% of chance of probe spawning every day in hyperspace, versus maximum of 8% in normal game. And spoilers.
Q) How does UQM differ from the PC Star Control II in terms of gameplay in BGD challenge?
A) When you emerge in hyperspace (from battle, from truespace), in the PC version you would always emerge with the ship pointing north. It means that if you wanted to go anywhere else but north, you would have to slowly crank the ship to rotate towards the desired direction. In the open source version, the ship is automatically quick-oriented towards the original direction, which is a huge boon in a challenge like this. The planet lander only holds 50 units of BIO data rather than 64, necessitating more landings. And the BIO is more aggressive.
(Your question here) Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 1/9](https://i.ytimg.com/vi/ilLlvEIItkM/mqdefault.jpg)

![Demo showcase (from `90s) [part 1]
Sometimes people ask me whether I have been in demoscene. Well, some isolated effects sometimes, but no, I haven’t really. I searched my archives a bit for anything I could count as “demos” or “intros”, and I was able to find just a few. Here’s number 1/5. I made this in 1996年1月.
It is an intro for a BBS that my friend hosted for a while. It is also one of the very few programs I made that use Sound Blaster directly for PCM output (rather than using through a library or by outputting FM sound instead of PCM).
After it stops raining, there is no music in this demo. When it begins snowing, there could be some very awesome music. I am thinking the style that plays in Future Crew’s “Panic” from 3 minutes onwards, or in their “Second Reality” from 4 minutes onwards. But I just wasn’t a musician good enough to pull it off.
Twitter: https://twitter.com/RealBisqwit
Patreon: https://patreon.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
The “group” name... Well, it was popular those days that coders must belong to a group. The group name was invented by Core (who nowadays goes by name Acidia). Most likely inspired by heavy metal or something. I wasn’t particularly a fan. Demo showcase (from `90s) [part 1]](https://i.ytimg.com/vi/jpjGXwnSvmg/mqdefault.jpg)

