MonkCode
Exploring the digital world!
Video Games
Phaser is the king
This guy has some great examples:
These blocks where fun to play with: Angry Birds Space
This is the basic building block for a phaser video game:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Making your first Phaser 3 Game - Part 1</title>
<script src="//cdn.jsdelivr.net/npm/phaser@3.11.0/dist/phaser.js"></script>
<style type="text/css">
body {
margin: 0;
}
</style>
</head>
<body>
<script type="text/javascript">
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
scene: {
preload: preload,
create: create,
update: update
}
};
var game = new Phaser.Game(config);
function preload ()
{
}
function create ()
{
}
function update ()
{
}
</script>
</body>
</html>
Credit for this sample code goes to: https://phaser.io/tutorials/making-your-first-phaser-3-game/part1