June 2015
Beginner
354 pages
8h 23m
English
Carry out the following steps:
index.html file and add the following canvas markup:<canvas id='drawing-pad' width='500' height='400'> </canvas>
<style>
canvas{position:relative;}
</style>html5games.websocket.js JavaScript file to add the drawing logic.websocketGame global object with the following variable at the top of the JavaScript file:var websocketGame = { // ...Read now
Unlock full access