2016-02-10 20:59:07 +11:00
|
|
|
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2016-02-11 04:48:47 +11:00
|
|
|
<title>nodePong, a multiplayer online pong based on nodejs and socket.io</title>
|
2016-02-10 20:59:07 +11:00
|
|
|
<link rel="stylesheet" type="text/css" media="all" href="./css/main.css">
|
|
|
|
<script type="text/javascript" src="http://127.0.0.1:8042/socket.io/socket.io.js"></script>
|
2016-02-14 00:49:19 +11:00
|
|
|
<script type="text/javascript" src="./jquery/jquery-2.1.3.min.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/npg_client.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/socket/socketio_handler.js"></script>
|
2016-02-14 14:37:31 +11:00
|
|
|
<script type="text/javascript" src="./lib/utils/client_utils.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/utils/js_utils.js"></script>
|
2016-02-14 00:49:19 +11:00
|
|
|
<script type="text/javascript" src="./lib/keyboard/event_handler.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/core/page_base.js"></script>
|
2016-02-14 07:06:40 +11:00
|
|
|
<script type="text/javascript" src="./lib/core/page_handler.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/ui/ui.js"></script>
|
2016-02-16 10:47:28 +11:00
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_object.js"></script>
|
2016-02-21 05:11:56 +11:00
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_menu.js"></script>
|
2016-02-14 07:06:40 +11:00
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_style.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_point2d.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_rect.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_label.js"></script>
|
2016-02-14 10:23:22 +11:00
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_status_text.js"></script>
|
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_input_text.js"></script>
|
2016-02-14 14:37:31 +11:00
|
|
|
<script type="text/javascript" src="./lib/ui/objects/ui_cursor.js"></script>
|
2016-02-10 20:59:07 +11:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="main">
|
|
|
|
<canvas id="pong" width="800" height="500">
|
|
|
|
</canvas>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
2016-02-14 07:06:40 +11:00
|
|
|
NPGClient.PageHandler.setup();
|
|
|
|
NPGClient.ui.setupUI('pong',NPGClient.CAN_W, NPGClient.CAN_H, NPGClient.CAN_COL);
|
2016-02-13 10:36:12 +11:00
|
|
|
NPGClient.evtHandler.init();
|
|
|
|
NPGClient.SocketIO.startConnectLoop();
|
2016-02-10 20:59:07 +11:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|