Graphical.js
A downloadable tool
Welcome To GRAPHICAL.JS
A Game Engine To Create Games
Heres A Tutorial Made For Begginers:
Welcome To GRAPHICAL.JS Where All Games Can Be Made!
How To Start Off Your Main.js with graphical:
// Main.js
import {Square,Shape,Circle,debugLogText} from "./Path/To/Your/File"
var square = new Square(x,y,width,height,color); // makes a square
var circle = new Circle(x,y,radius,color); // makes a circle
debugLogText("hello!"); // writes youe text in console
const vertices = {
{x:x,y:y}, // put how much vertices as you want
}
var shape = new Shape(vertices,color) // you can import a few vertices from graphical.js like octagonVertices, etc..
Status | Released |
Category | Tool |
Author | TotallyNotFz1no |
Download
Install instructions
download the file and put it in your files where you do you html stuff!
how to setup:
open html file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
</head>
<body>
<canvas></canvas>
<script type="module" src="Main.js"></script> <!-- Ensure the path is correct -->
</body>
</html>
now import every in your main.js and start creating!
Comments
Log in with itch.io to leave a comment.
MY FIRST GAME ENGINE!!!!
btw sub to fz1no on youtube ;)