Learn Basic Programming by example - A 2D Game - Part 05

Опубликовано: 22 Июнь 2026
на канале: Pure Programming
740
25

Learn PureBasic by example. Follow the development step by step of a simple 2D game : the snake. This famous game lets you control a snake on a screen where apples appear at random. When the snake eats an apple, it grows in size. The goal is to survive the longest.

In this episode, I polish what I have done in the previous episode. I clean the code, I change the way the snake is initialized, I prevent the apple to appear on the snake, I make the snake die when it crashes into itself, and I add tons of comments.

Download the code from this episode at http://bit.ly/2TrZxK3

Download PureBasic at http://www.purebasic.com/pp

Support the channel with some Merchandising
EU : shop.spreadshirt.net/pure-programming
US : shop.spreadshirt.com/pure-programming

Desert Photo by Tanya Nevidoma on Unsplash