Linux Terminal Game from Scratch I - Termios, ANSI Escape Codes
Автор: Simon Racz
Загружено: 2023-04-18
Просмотров: 9098
Linux Terminal Game from Scratch I
Termios, ANSI Escape Codes
Implementation Stages
Stage 1
Non-canonical input mode
Turning off echo
Proper reset on exit (both for normal exit and abnormal exit)
Rudimentary game loop
Grab the arrow keys
Print them out (e.g. RIGHT)
Stage 2
Empty level with borders
Player can walk around within the borders
Stage 3
Optimize rendering
Optimize game loop
Stage 4
Load up level from a file
Stage 5
Gameplay
Stage 6
Tests
Stage 7
Rendering
Colors
Animations
0:00 Introduction
02:42 Capabilities and Limitations of the Terminal
10:12 ANSI Escape Codes
11:55 Termios
13:55 The Big Plan
16:19 Stage 1 - Input Handling
Code
https://github.com/simonracz/linux-te...
man 3 termios
ANSII Escape Codes - https://en.m.wikipedia.org/wiki/ANSI_...
#linux #terminal #C #gamedev #signals #gameloop #programming #tutorial
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: