Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawText ( canvas, index, x, y, text ) {
- let context = canvas.getContext (`2d`);
- context.fillStyle = `argb( 255, 255, 255, 1.0 )`;
- context.font = `8px "Px437 IBM VGA8"`; // Substitute with "IBM VGA 8x16" or similar if available
- context.fillText (
- text,
- x * Sprites[index].xspan,
- y * Sprites[index].yspan
- );
- console.log(`Draw Text: "${text}" @ ( ${x}, ${y} )`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement