Skip to content

Instantly share code, notes, and snippets.

@ebonneville
Created October 22, 2012 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebonneville/3929246 to your computer and use it in GitHub Desktop.
Save ebonneville/3929246 to your computer and use it in GitHub Desktop.
// create a display for console-like rendering
display = new Display(new Vector2(80, 25), new Vector2(10, 35), true);
// let's draw the classic @ sign:
display.ch("@", new Vector2(10, 10));
// maybe fake a few walls
for(var x = 0; x<10; x++) {
display.ch("#", new Vector2(x, 0));
}
// let's put a green slime down, too
display.ch("j", new Vector2(15, 15), "green");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment