Level editor wannabe for Lux.js platformer engine (0.0.8) - Monolithic Version
+11

html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- This is a level editor prototype for Lux.js
2D platformer engine by Lux (a.k.a MinatoX)
and can be found at:
https://code.sololearn.com/WQU8o8PHedlL -->
<!-- I was trying to release it sooner but I
forgot to do that.
And the release somewhat coincided with me
reaching level 10... so... Happy level 10s
I guess :D -->
<!-- NOTE: This Monolithic version works on the code
playground but since I still haven't implemented
the touch events it is useless on mobile but at
least it should no longer give any kind of error.
You can also copy-paste this pile of code onto your
favorite editor and try it from your browser of choice.
-->
<!-- Peace out.
Alper Tiryakioglu -->
<!DOCTYPE html>
<html>
<head>
<title> Lux.js Level Editor (At least wannabe...) </title>
</head>
<body>
<!-- First, buttons. -->
<div id="UpperToolbar">
File:
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
html, body{
background-color: gray;
height: 100%;
padding: 0;
margin: 0;
width: 100%;
}
#UpperToolbar{
background-color: green;
border: 1px solid black;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding: 10px;
}
#LowerToolbar{
background-color: green;
border: 1px solid black;
border-radius: 5px;
padding: 10px;
}
#Area{
border: 1px solid black;
cursor: crosshair;
background-color: white;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run