Skip to content

Commit b931a66

Browse files
Matt JohnsonMatt Johnson
Matt Johnson
authored and
Matt Johnson
committed
Demo comments
1 parent 773fefc commit b931a66

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sample/src/Demo.hx

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ class Demo extends State {
2323
glyph_file_columns:16
2424
});
2525

26-
//
26+
// Think of this as your "back buffer". Draw everything to this buffer, and when you're done,
27+
// update the ConsoleBuffer with it (See below).
2728
textBuffer = new TextBuffer(80, 25);
2829

30+
// Example image created in REXPaint.
2931
sprite_logo = REXLoader.load('assets/xp/luxe_ascii_logo.xp');
3032

3133
stars = new Array<Star>();
@@ -44,7 +46,8 @@ class Demo extends State {
4446
if(s.x < 0) s.reset();
4547
}
4648

47-
// Clear the buffer
49+
// Clear the buffer. This is optional, but since this example doesn't draw to every
50+
// character in the position, the stars will leave trails when they move.
4851
textBuffer.clear(ANSIColors.color(0));
4952

5053
// Draw the starfield

0 commit comments

Comments
 (0)