Maffy GAME ENGINE
window.onload = function() {
}
window.onload = function() {
var body = document.getElementsByTagName('body')[0];
}
//dont touch this aspect
window.onload = function() {
var body = document.getElementsByTagName('body')[0];
let canvas = document.createElement("iframe");
canvas.id= "view";
canvas.class= "view";
canvas.style= "width: 350px; height: 350px;";
body.appendChild(canvas);
//you can edit this aspect, when you touch this aspect change the edittable name flowing every places
let imager = document.createElement('img');
imager.src= "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQarl4diwVagHc3tyGUowYD8QH1xRCksTQd3A&usqp=CAU";
//dont touch this aspect
let bodies = document.getElementsByTagName('body')[0];
let section = document.createElement('section');
section.appendChild(imager);
bodies.appendChild(section);
function maffyconstruct() {
//constructing media for maffy game engine which you can add your game code inside this curly bracket
}
//maffy transformation script outlet you can make edit by changing the items on display in this box
var item = "
";
var item2 = "
";
//dont touch this aspect
var allItem = item + item2;
let nom = document.createElement('section');
nom.innerHTML = "" + maffyconstruct + " " + allItem;
let bod = document.getElementsByTagName('body')[0];
bod.appendChild(nom);
canvas.style= "width: 100px; height: 100px; background: blue;";
maffyconstruct();
//this is maffy preview screen view dont touch this aspect
var bodo = document.getElementsByTagName('body')[0].innerHTML;
var maffyFramer = document.getElementsByTagName('iframe')[0].contentWindow.document;
maffyFramer.style= "width: 350px; height: 350px;";
maffyFramer.open();
maffyFramer.write(bodo);
maffyFramer.close();
}
window.onload = function() {
var body = document.getElementsByTagName('body')[0];
}
//dont touch this aspect
window.onload = function() {
var body = document.getElementsByTagName('body')[0];
let canvas = document.createElement("iframe");
canvas.id= "view";
canvas.class= "view";
canvas.style= "width: 350px; height: 350px;";
body.appendChild(canvas);
//you can edit this aspect, when you touch this aspect change the edittable name flowing every places
let imager = document.createElement('img');
imager.src= "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQarl4diwVagHc3tyGUowYD8QH1xRCksTQd3A&usqp=CAU";
//dont touch this aspect
let bodies = document.getElementsByTagName('body')[0];
let section = document.createElement('section');
section.appendChild(imager);
bodies.appendChild(section);
function maffyconstruct() {
//constructing media for maffy game engine which you can add your game code inside this curly bracket
}
//maffy transformation script outlet you can make edit by changing the items on display in this box
var item = "
";
var item2 = "
";
//dont touch this aspect
var allItem = item + item2;
let nom = document.createElement('section');
nom.innerHTML = "" + maffyconstruct + " " + allItem;
let bod = document.getElementsByTagName('body')[0];
bod.appendChild(nom);
canvas.style= "width: 100px; height: 100px; background: blue;";
maffyconstruct();
//this is maffy preview screen view dont touch this aspect
var bodo = document.getElementsByTagName('body')[0].innerHTML;
var maffyFramer = document.getElementsByTagName('iframe')[0].contentWindow.document;
maffyFramer.style= "width: 350px; height: 350px;";
maffyFramer.open();
maffyFramer.write(bodo);
maffyFramer.close();
}
iframe, #view {
width: 450px;
height: 450px;
border: solid 2px transparent;
}
#img {
* your desired code *
width: ;
height: ;
border: solid 2px transparent;
border-radius: ;
}
section {
}
div {
}