Maffy GAME ENGINE







Welcome To Maffy Game Engine

ABOUT

Maffy Game Builder Or Engine is a type of engine with surphisticated tools and materials to make your dream games come true, having a platform which supports all kind of game building from Fps to adventure, even learning games.
Callup Game Engine also have an easy to implement all framework of Javascript, it also implement Html Api in other to build a clean sheet html5 game.
Maffy Game Engine also support the uploading of your version and code mode having it retrival system which is an easy copy and paste system in css and javascript, but not html tag input or javascript blocks.
Maffy Game Engine though having its own function it supports all form of game js coding, like three.js, vue.js, laravel.js, style.js, canvas.js, gomy.js, gdev.js and so many javascript codes.



Engine Code

Starter Code:
window.onload = function() {



}


Body Code:
window.onload = function() {
var body = document.getElementsByTagName('body')[0];



}


Running Code:
//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 = "some image";
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();

}

Or

Running Code:
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 = "some image";
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();

}


Style css


iframe, #view {
width: 450px;
height: 450px;
border: solid 2px transparent;
} 
#img {
* your desired code *
width: ;
height: ;
border: solid 2px transparent;
border-radius: ;
}
section {


}
div {

}



Explaining


 window.onload = function() {
 
 
 }
 
this is to tell the window to load the code function linking with out script linking the value
 var body = document.getElementsByTagName('body')[0];
 
this is to catch the body of the whole game
 let canvas = document.createElement('iframe');
 canvas.id= "view";
 canvas.class= "view";
 
 body.appendChild(canvas)
 
this is to create the preview mini screen element mode of your games, just like a mini mapping of your game.
 let bodies = document.getElementsByTagName('body')[0];
 let section = document.createElement('section');
 section.innerHTML= "  ";

 bodies.appendChild(section);
 
 
this is to create a dashboard section frame work for your html5 tags of our game sprites and objects.
 function maffyconstruct() {
 
 
 
 }
 
 
 
 maffyconstruct();
 
this is for your game scripting code to control the game and for it to affect the html5 tags
 var item = "  ";
 var item2 = "  ";
 

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;";

 
 
this is to create the html tag items and sprite, if you dont want to create the item via the input box.

or you can create items via the html input via the buttons
 var item = document.getElementById('...the id of your html tag input...'); //or for class// document.querySelector('...this is for the class of your html tag represented '.__'.....');
 var item = document.getElementById('...the id of your html tag input...'); //or for class// document.querySelector('...this is for the class of your html tag represented '.__'.....');
 
 
 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;";
 
 
 


 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();
 
 
this is let the preview mini mode display the whole body events of the game body html tag
Well After the Body Load Function the rest are optional


SO Maffy ENGINE IS AN EASY TO USE GAME BUILDER AND THE CODES ARE REUSABLE FOR ALL TYPE OF WEB DEVELOPMENT OR WEBAPP DEVELOPMENT
Thank you for using Maffy Game Engine or Builder.




GO TO MAFFY GAME ENGINE



👉

Add Maffy.js into the js code editor of Maffy and run the code through the play button and watch how it transforms then make edit on the aspect which is bid changeable

Still Stay Tuned For The Next Version Of Maffy Game Builder