-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (60 loc) · 2.09 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html id="html" lang="en">
<title>love2d.js</title>
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0"/>
<script nomodule>
// if no support for module
document.write("your old browser don't support module type : need update it");
</script>
<script type="module">
import {love} from "./js/love2d.js";
//love.system_writeSave("savet",{name:"ok"});
console.log(love.system_readSave("savet").name)
love.load=function()
{
love.window_setMode(800,380);
love.graphics_setFont("monospace");
}
love.update=function(dt)
{
}
love.draw=function()
{
love.graphics_setColor(255,255,245,255);
love.graphics_rectangle("fill",0,0,800,480);
love.graphics_setColor(10,10,10,255);
love.graphics_print("Love2d.js",23,45,0,30);
love.graphics_setColor(150,0,50,255);
love.graphics_print("Love2d.js",21,45,0,30);
love.graphics_print("love2d api for html5 game, ",24,70,0,15);
love.graphics_print("not using emscripten, ",24,87,0,15);
love.graphics_print("100% in javascript",24,102,0,15);
love.graphics_setColor(10,10,10,255);
love.graphics_print("features",24,140,0,20);
love.graphics_setColor(150,0,50,255);
love.graphics_print("features",22,140,0,20);
love.graphics_print("* draw : text,rectangle,cercle,line",24,160,0,15);
love.graphics_print("* load image,song,video and use it",24,180,0,15);
love.graphics_print("* input : keyboard,mouse and touch",24,200,0,15);
love.graphics_print("* setting window and icon",24,220,0,15);
love.graphics_print("made with love2d.js by oblerion",24,280,0,15);
}
</script>
</head>
<body>
<main>
<canvas id="canvas_love2d"></canvas>
</main>
<footer>
<p>example :</p>
<li>
<ul><a href="./example/draw_shape/index.html">draw shape</a></ul>
<ul><a href="./example/getTouches/index.html">touch</a></ul>
<ul><a href="./example/loading_asset/index.html">loading asset</a></ul>
</li>
<a href="https://github.com/oblerion/love2d.js/wiki">api</a>
<a href="https://github.com/oblerion/love2d.js">github</a>
</footer>
</body>
</html>