Clig
Simple game engine to make simple CLI games
Functions
Map
Entity
Documentation
Create a new empty map and display it to the screenx:
let map = new;
map.create;
Resize it and change the border:
let mut map = new;
map.create;
map.setsize;
map.create;
map.setdelimiter;
map.create;
Draw some entities :
let mut map = new;
let entities: = vec!
map.drawentities; // Won't draw anything cause 15 > 10
let mut map = new;
let entities: = vec!
map.drawentities; // Will draw a 8 at (10;8) and a 0 at (1;1)
Move an entity after drawing it :
let mut map = new;
let mut entities: = vec!
map.drawentities; // Will draw a 0 at (1;1)
entities.move_to;
map.drawentities; // Will draw a 0 at (5;2)