Skip to content

Recreation of classic Rouge game in C. C practice project.

Notifications You must be signed in to change notification settings

NikolaVetnic/RougeC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Recreation of classic Rouge game in C. C practice project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published