Skip to content

Instantly share code, notes, and snippets.

@Srushtika
Last active May 28, 2020 12:10
Show Gist options
  • Save Srushtika/9fc9252949371bc3b0b5ad17f1502f3b to your computer and use it in GitHub Desktop.
Save Srushtika/9fc9252949371bc3b0b5ad17f1502f3b to your computer and use it in GitHub Desktop.
Code snippet 1 - For multiplayer space invaders article
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Space Invaders</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Multiplayer space invaders" />
<link
id="favicon"
rel="icon"
href="https://glitch.com/edit/favicon-app.ico"
type="image/x-icon"
/>
<!-- link to arcade style font -->
<link
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
rel="stylesheet"
/>
<!-- link to stylesheet -->
<link rel="stylesheet" href="/style.css">
<!-- link to Phaser CDN -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script>
<!-- link to the script -->
<script src="/script.js" defer></script>
</head>
<body class="index-body">
<!--this div will house our game canvas-->
<div class="game-div" id="gameContainer"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment