-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (63 loc) · 1.99 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
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
<title> LiamTheNinja5's Games </title>
<script src="https://simplycodingcourses.com/files/simplyjs/simply.js"></script>
<script>
var w = window.innerWidth;
var h = window.innerHeight;
function start(){
sjs.open("target",w,h);
var menu_text = new sjs.Text("MENU",28,"blue");
menu_text.centerH();
var game_text = new sjs.Text("Press a button to play a game",28,"blue");
game_text.centerH().offset(0, 30);
//start pong
var startPong = new sjs.Button("Pong", function(){
window.location = "JavaScript/Game Design/Pong/index.html";
});
startPong.center().offset(250, -90);
//start fish
startFish = new sjs.Button("Fish", function(){
window.location = "JavaScript/Game Design/Fish/index.html";
});
//start platform
startPlatform = new sjs.Button("Platform", function(){
window.location = "JavaScript/Game Design/Platform/index.html";
});
startPlatform.center().offset(260, -60);
//start dolphing
startPlatform = new sjs.Button("Dolphin", function(){
window.location = "JavaScript/Game Design/dolphin/index.html";
});
startPlatform.center().offset(260, -30);
//reddit link
redditlink = new sjs.Button("reddit", function(){
window.location = "https://www.reddit.com/user/AMinecraftNinja5";
});
//yt link
ytlink = new sjs.Button("Youtube", function(){
window.location = "https://www.youtube.com/channel/UC-8wmedIzAO7DTOBnLdgwEw";
});
ytlink.offset(0, 30);
//git link
gitlink = new sjs.Button("The Github for this project", function(){
window.location = "https://github.com/LiamTheNinja5/MVgamejsclass";
});
gitlink.bottom()
//doc link
doclink = new sjs.Button("The Documentation for the SJS library", function(){
window.location = "Javascript/SJSdocs/global.html";
});
doclink.bottom().offset(0, -30);
startFish.center().offset(250, -120);
var info_text = new sjs.Text("Created By LiamTheNinja5",20,"black");
info_text.bottom().centerH();
} //end start
</script>
</head>
<body onload="start()">
<h1></h1>
<div id="target" style="background-image: url('JavaScript/background.png');"></div>
</body>
</html>