Skip to content

A simple dot net framework for building games that run in a terminal window.

License

Notifications You must be signed in to change notification settings

MeLikeyCode/Tergie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tergie

A simple, easy to use dot net framework for building games that run in a terminal window.

Written in C#.

screenshot

Example

public class Program
{
    public static void Main(string[] args)
    {
        // create a scene
        int sceneWidth = 120;
        int sceneHeight = 60;
        Scene scene = new Scene(sceneWidth,sceneHeight);
        
        // create an entity

        // first, create the graphics for the entity (just a 2d array of characters)
        char[,] graphics = new char[,]
        {
            {'x','x','x'},
            {'x','o','x'},
            {'x','x','x'},
        };

        // now create the entity
        Entity entity = new Entity(graphics);
        
        // add the entity to the scene
        scene.AddEntity(entity);

        // start the game (starts event/render loop)
        int windowWidth = sceneWidth;
        int windowHeight = sceneHeight;
        Game.Start(scene,windowWidth,windowHeight);
    }
}

Demo/Tutorial Video

https://youtu.be/KIZl1xTVVds

About

A simple dot net framework for building games that run in a terminal window.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages