File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ class Demo extends State {
23
23
glyph_file_columns :16
24
24
});
25
25
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).
27
28
textBuffer = new TextBuffer (80 , 25 );
28
29
30
+ // Example image created in REXPaint.
29
31
sprite_logo = REXLoader .load (' assets/xp/luxe_ascii_logo.xp' );
30
32
31
33
stars = new Array <Star >();
@@ -44,7 +46,8 @@ class Demo extends State {
44
46
if (s .x < 0 ) s .reset ();
45
47
}
46
48
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.
48
51
textBuffer .clear (ANSIColors .color (0 ));
49
52
50
53
// Draw the starfield
You can’t perform that action at this time.
0 commit comments