PyGame Basics: An Improved Game Loop

In this guide, we will be creating a PyGame game loop with delta time. Using delta time can be very useful in keeping the movement of your game smoother. Essentially with a delta time based game loop, game objects will appear to move at a constant speed even when the frame rate changes. Something like the following is common for a PyGame game loop: self.clock.tick(self.fps) while not self.done: self.update() self.render() To convert this game loop to utilize delta time, change the above code to the following:...

October 15, 2019 · 2 min · Jared

PyGame Basics: Keyboard Input

In this guide, we will take a look at a couple ways to gather keyboard input with PyGame. There are a few ways of grabbing keyboard input. The first way to gather keyboard input is via capturing PyGame events. To check if any arrow keys are pressed down on the current update, you can write: for event in pygame.event.get(): if event.type == pygame.QUIT: running = False if event.type == pygame.KEYDOWN: if event....

October 5, 2019 · 2 min · Jared

Phaser 3 Basics: Boilerplate Code

In this part we will be adding the boilerplate code for our Phaser game. There are a few steps we need to do: add code to our index.html file, add some code to an index.html file, defining a game configuration, creating a boot scene, adding a main scene, and creating an instance of our game. If you don’t have an index.html file yet, or you need to add a script for our game, please check out part one of this series....

September 27, 2019 · 3 min · Jared

Phaser 3 Basics: An Introduction

Phaser is one of the most popular HTML5 game frameworks. It uses modern web technologies that allow for creating epic cross-browser games. In this tutorial series, we will be covering the basics of Phaser 3! This series will cover everything needed to make a basic game. Some of the concepts we will be covering include: Setting up a simple development environment Loading images, sounds, and TrueType fonts Adding sprites Changing positions Setting velocity and acceleration Simple collisions Basic sprite effects Playing sounds Particles The goal of this series is to break down these concepts into small, manageable parts....

September 25, 2019 · 1 min · Jared

A Nibble of HTML

Hello! This guide is meant to be a tiny introduction to the markup language, HTML. HTML stands for Hypertext Markup Language. This is the language the defines the structure of the websites you visit. Before we begin writing our own HTML page, create a folder wherever you wish to store the web page. Feel free to name it anything you like. Next, create a file inside that folder and name it index....

June 22, 2019 · 5 min · Jared