mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
|
<!DOCTYPE HTML>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>phaser.js - a(nother) new beginning</title>
|
||
|
<script src="../src/Phaser.js"></script>
|
||
|
<script src="../src/system/Device.js"></script>
|
||
|
<script src="../src/core/SignalBinding.js"></script>
|
||
|
<script src="../src/core/Signal.js"></script>
|
||
|
<script src="../src/net/Net.js"></script>
|
||
|
<script src="../src/math/RandomDataGenerator.js"></script>
|
||
|
<script src="../src/animation/Animation.js"></script>
|
||
|
<script src="../src/animation/Frame.js"></script>
|
||
|
<script src="../src/animation/FrameData.js"></script>
|
||
|
<script src="../src/animation/Parser.js"></script>
|
||
|
<script src="../src/loader/Cache.js"></script>
|
||
|
<script src="../src/loader/Loader.js"></script>
|
||
|
<script src="../src/Game.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
var game = new Phaser.Game(this, '', 800, 600);
|
||
|
|
||
|
console.log('Host Name:', game.net.getHostName());
|
||
|
console.log('Host Name contains 192:', game.net.checkDomainName('192'));
|
||
|
console.log('Host Name contains google.com:', game.net.checkDomainName('google.com'));
|
||
|
|
||
|
// Add some values to the query string
|
||
|
console.log(game.net.updateQueryString('atari', '520'));
|
||
|
console.log(game.net.updateQueryString('amiga', '1200'));
|
||
|
console.log(game.net.updateQueryString('commodore', '64'));
|
||
|
|
||
|
console.log('Query String: ', game.net.getQueryString());
|
||
|
console.log('Query String Param: ', game.net.getQueryString('atari'));
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<a href="?atari=1&amiga=2&commodore=3">Reload with query string</a>
|
||
|
|
||
|
</body>
|
||
|
</html>
|