Tutorials Version 1

This commit is contained in:
Luis Fernando Molina committed 2020-09-06 19:35:37 +02:00
1 parent 9049ca7e75
commit f4e2b97f3f
10 files changed
+737 -64

No files matched your search

@@ -1,24 +1,5 @@
function newTutorialFunctions() {
thisObject = {
play: play
}
const HEIGHT = 800
const WIDTH = 500
const MARGIN = 300
return thisObject
function play(node) {
let docAppDiv = document.getElementById('tutorialStepDiv')
tutorialPosition = {
x: MARGIN,
y: (browserCanvas.height - HEIGHT) / 2
}
docAppDiv.style = ' ' +
'position:fixed; top:' + tutorialPosition.y + 'px; ' +
'left:' + tutorialPosition.x + 'px; ' +
'width: ' + WIDTH + 'px;' +
'height: ' + HEIGHT + 'px;' +
'z-index:1;'
}
}