More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
◑ Python IDE Dashboard
Tag: Coordinates

Falling/Scrolling Object Algorithms

In many arcade video games objects are flying across the screen (either vertically: falling objects, upcoming cars in car racing game) or horizontally (e.g. pipes in Super Mario or flappy bird, cars in Crossy Road). In frame based games, motions…

Pacman Ghost Algorithm

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 Algorithm

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.…

Closest Player Detection Algorithm

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…

Random Background Generator

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…

Oblique Projection Formulas

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…

Layer Cake using Python Turtle

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…

Infinite Quarter Series

The infinite quarter series is a series where each term is a quarter of the previous one: We can visually represent this series by dividing a canvas (or price of paper) into 4 quadrants and colouring in one quadrant (bottom…

Estimating Pi using Buffon’s Needle

A few hundred years ago people enjoyed betting on coins tossed on to a wooden floor … would they cross a line or not? A French mathematician called Georges-Louis Leclerc, Comte de Buffon (1707-1788) started thinking about this and worked…

Golden Angle

In geometry, the golden angle is the smaller of the two angles created by sectioning the circumference of a circle according to the golden ratio. Golden Angle ≈ 137.5° The golden angle plays a significant role in the theory of…

Privacy Overview

This website will store some information about your preferences on your own computer inside a tiny file called a cookie. A cookie is a small piece of data that a website asks your browser to store on your computer or mobile device. The cookie allows the website to remember your actions or preferences over time.

You can delete all cookies that are already on your computer, and you can set most browsers to prevent them from being placed. However, if you do this, you may have to manually adjust some preferences every time you visit a site, and some services and functionalities may not work.

Most browsers support cookies, but you can set your browser to decline them and can delete them whenever you like. You can find instructions here for how you can do that on various browsers.

This website uses cookies to:

  1. Identify you as a returning user and to count your visits in traffic statistics analysis
  2. Remember your custom display preferences (such as light/dark theme option)
  3. Provide other usability features, including tracking whether you have already given your consent to cookies

Enabling cookies is not strictly necessary for the website to work but it will provide you with a better browsing experience.

The cookie-related information is not used to identify you personally and is not used for any purpose other than those described here.

There may also be other types of cookies created after you have visited this website. This site uses Google Analytics, a popular web analytics service that uses cookies to help to analyse how users use the site. The information generated by the cookie about your use of this website (including your IP address) will be transmitted to and stored by Google on servers in the United States. Google will use this information for the purpose of evaluating your use of other website, compiling reports on website activity, and providing other services relating to website activity and internet usage. Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. Google undertakes not to associate your IP address with any other data held by Google.