Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.03 KB

File metadata and controls

27 lines (15 loc) · 1.03 KB

ROUGE C

RougeC

Recreation of classic Rouge game in C. C practice project. The map generation algorithm used is based on Conway's Game of Life automaton. Field of view implementation relies on ray casting procedure using Bresenham's line algorithm to detect visible ground tiles.

Movement with WASD.

Tips

Printing UTF-8 in C

You need to initialize the locale's encoding by calling setlocale at your program's start, like so:

    setlocale(LC_CTYPE, "")

This is normally carried out for you if you use some initialization function.

Links

ASCII Table

Generate Random Cave Levels Using Cellular Automata

Bresenham's Line Algorithm in Eight Directions