fake 3d
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// "Squashes" two dimensional coordinates onto the one dimensional screen buffer
|
||||
draw :: (using screen: *Screen, p: Vec2s64, char: u8 = DEFAULT_PIXEL_CHAR) {
|
||||
if p.x >= 0 && p.x < width && p.y >= 0 && p.y < height {
|
||||
buffer[p.y * width + p.x] = cast(u8)char;
|
||||
buffer[p.y * width + p.x] = char;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user