@1AAAAAAAAAAAA/

Level Designer

HTML, CSS, JS

Design your own level of my WebGL Rolling Sky

fork
loading
Files
  • index.html
  • main.js
  • style.css
index.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
29
30
31
32
33
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id="designer">
      <table id="grid">
        
      </table>
    </div>
    <div id="main">
      
      <div id="color"></div>
      <button id="add">Add Row</button>
      <button id="remove">Remove Row</button>
      <h1>WebGL Rolling Sky Level Designer</h1>
      <ol>
        <li>Click the above circle to change the color of the paint.</li><br>
        <li>Click or drag the squares to paint them with color. The squares represent the tiles of the game.</li><br>
        <li>Copy all the text inside the text box below. Go to my <a href="https://repl.it/@jser/WebGL-Rolling-Sky">WebGL Rolling Sky repl</a>, and replace the content of data.js with the text you copied. (This will save the REPL as your own)</li>
      </ol>
      <textarea readonly="true" id="output"></textarea>
    </div>
    
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>    
    <script src="main.js"></script>
  </body>
</html>
result
console