Skip to content

Sokus/console-rpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleRPG

This projects main purpose is to create a game, entirely under console terminal without any graphic libraries - it was the first project I have ever worked on. Apart from system headers and standard library this project has no dependencies.

console_rpg.mp4

This project is dependent on two Windows API functions, first one for getting the standard output handle:

HANDLE WINAPI GetStdHandle(
    _In_ DWORD nStdHandle
);

And the second one that lets us change the color used in the terminal:

BOOL WINAPI SetConsoleTextAttribute(
    _In_ HANDLE hConsoleOutput,
    _In_ WORD   wAttributes
);

It has only 16 colors to choose from, but by creatively using some ASCII characters (for example ▓▓▒▒░░) we could easily increase the number of perceived colors available to 784. All textures are stored as a series of numbers (color indices) in .txt files.

About

2D top-down RPG made entirely in console

Resources

Stars

Watchers

Forks

Packages

No packages published