Alert: Your browser does not support full functionality of our app and you may experience certain errors. We recommend that you use Chrome, Firefox or Internet Explorer Edge instead.

AlbiaSoft

ENGINYERIA DEL SOFTWARE

  • 2
    Subscribers

How to implement the Boids Algorithm in QBasic

Implementació de l'Algorisme Boids en QBasic

This video is being processed

Implementación del Algoritmo Boids en QBasic

This video is being processed

How to implement the Boids Algorithm in QBasic

This video is being processed
In this video we will implement a well-known artificial life algorithm in QBasic. This is the Boids algorithm developed by Craig Reynolds in 1986.
In this video we will implement a well-known artificial life algorithm in QBasic. This is the Boids algorithm developed by Craig Reynolds in 1986. This simple algorithm recreates the herd behavior of some animals, such as some specific species of birds, fish and even some mammals such as sheep.

Source code: https://github.com/albertnadal/QBasicBoids

00:00:04 Introducing the Reynold's Boids algorithm
00:03:17 Draw boids on the screen
00:05:48 The main loop
00:07:53 Apply noise forces to boids
00:09:13 Move boids on the screen
00:10:58 Limit the frames per second
00:11:55 Limit the speed of the boids
00:14:11 Draw boids like fishes
00:16:40 Get the neighbors of each boid
00:20:35 Calculate cohesion forces
00:24:42 Calculate alignment forces
00:27:02 Calculate separation forces
00:29:17 Refactor and improve performance
00:33:36 Draw obstacles and repulsion forces
00:38:07 Behind the scenes

#programming #computerscience #algorithm #boids #craigreynolds #tutorial #qbasic #msdos