int[] scr_size = { 256, 192 }; int border_width = 12; int border_height = 8; int[] disp_size = { scr_size[0] + border_width * 2, scr_size[1] + border_height * 2 }; int scale = 2; PImage sprite; int sprite_size = 8; int[] sprite_data = { 0x42, 0xa5, 0x3c, 0x5a, 0xff, 0x24, 0x42, 0x81 }; int x, y, vx, vy; boolean started = false; void initSprite() { color c; sprite = new PImage(sprite_size * scale * 2, sprite_size * scale * 2, ARGB); for (int y=0; y> x); if (b > 0) { c = color(255, 37, 37, 255); } else { c = color(0, 0, 0, 0); } for (int dy=0; dy