Linux Terminal Game from Scratch I - Termios, ANSI Escape Codes
Описание
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-terminal-game
man 3 termios
ANSII Escape Codes - https://en.m.wikipedia.org/wiki/ANSI_escape_code
#linux #terminal #C #gamedev #signals #gameloop #programming #tutorial
Рекомендуемые видео
















