-
Notifications
You must be signed in to change notification settings - Fork 1
Learning the Basics
eboatwright edited this page Mar 4, 2022
·
14 revisions
🚧 Under construction! 🚧
If you haven't installed JSCII already, follow the instructions here. In your game's JavaScript file, override the init(), update(), and render() functionsinit = function() {
}
update = function() {
}
render = function() {
}
These functions will automatically be called in the right order.
In your render() function put this code for rendering a char to the screen.render = function() {
FONT.renderChar(AT, 5, 5, WHITE, BLACK);
}
This will render an @ at the tile coordinates 5, 5 with a white color, on a black background.
(Check the constants.js file / section for all the characters)
Next: Documentation