In a game of Pacman a specific algorithm is used to control the movement of the ghosts who are chasing (running towards) Pacman. For this challenge we will assume that ghosts can walk through walls (as ghosts do!). So we…
Bouncing algorithms are often used in arcade games such as Pong or Breakout. To understand how to implement a bouncing algorithm, it is essential to understand how the computer controls the trajectory of a sprite (e.g. ball) on the screen.…
Have you ever noticed when playing a team sport video game such as a (football, basketball, rugby game, etc.) the computer often finds out who the closest player to the ball is so that you can run to the ball…
In this challenge we will use a Python script (using Python Turtle) to generate a random background for a 2D video game. To create a mountain range skyline we will use two different approaches: Using a polynomial function Using a…
The aim of this challenge is to demonstrate how the oblique projection formulas are used to convert 3D coordinates (x,y,z) into 2D coordinates (x,y). The oblique projection formulas are essential to understand how 3D models are displayed on a 2D…
RISC and CISC are two computers architectures that are used by CPUs. Complete this drag and drop activity to highlight the characteristics of RISC & CISC processors. instructions several Complex Reduced Software circuitry 1 Desktop simpler Embedded devices Many clock…
2D arcade video games often use a frame based approach. This means that the screen is refreshed every so often (for instance every 20 milliseconds). This enables to animate the Graphical User Interface of the game making the game more…
In this challenge we will use Python Turtle to create and draw a layer cake. The code provided at the bottom of this blog post is using a few computing concepts such as: A list to store the parameters of…
While programming with high-level languages such as Python, you will use four different types of operators as follows: The assignment operator ( = ) which is used to assign a value to a variable or a constant. Arithmetic operators (…
There are many ways to locate data and instructions in primary memory and these methods are called “memory address modes”. Memory address modes determine the method used within the program to access data either from the Cache or the RAM.…