In this Julia Programming Language coding tutorial, you'll learn how to create a flocking simulation using the GameZero package. The GameZero Julia code used in this tutorial is heavily influenced by Dan Schiffman's P5 JavaScript code from The Coding Train YouTube channel.
- This tutorial is intended for amateurs and hobbyists.
- This tutorial is episode 12 of a 13-part series and is part of the Julia Desktop Apps playlist.
- Schedule: New tutorials are posted on Sundays / Mondays.
- Prerequisites: Julia, VS Code, Episode 409.
00:00 Intro
01:58 Setting the Stage
07:18 Artificial Life Function
10:44 Separation Rule
13:34 Alignment Rule
15:08 Cohesion Rule
17:02 Update Actors
19:06 Flocking Simulation
20:50 Outro
########################################
# Links for this tutorial
########################################
# Code for this tutorial (GitHub)
https://github.com/julia4ta/tutorials/tree/master/Series%2004/Tutorial%2004x12
# Link to Episode 04x09: Intro to Game Development using GameZero (YouTube)
https://youtu.be/SSYV8gC2UkQ
# "Boids | Background and Update" Website by Craig Reynolds
https://www.red3d.com/cwr/boids/
# "Flock, Herds, and Schools" Research Paper by Craig Reynolds
https://www.red3d.com/cwr/papers/1987/SIGGRAPH87.pdf
# "Craig Reynolds - Original 1986 Boids Simulation" (YouTube)
https://youtu.be/86iQiV3-3IA
# "Flocking Simulation" Video by The Coding Train (YouTube)
https://youtu.be/mhjuuHl6qHM
# "Flocking Simulation" Code by The Coding Train (JavaScript/P5 code)
https://thecodingtrain.com/CodingChallenges/124-flocking-boids
# "Boids: Dancing with Friends and Enemies" Video by Jesse Bettencourt
# from JuliaCon 2020 posted on The Julia Programming Language YT Channel
https://youtu.be/8gS6wejsGsY
# Agents.jl (GitHub + Docs)
https://github.com/JuliaDynamics/Agents.jl
https://juliadynamics.github.io/Agents.jl/stable/
# GameZero.jl (GitHub + Docs)
https://github.com/aviks/GameZero.jl
https://docs.juliahub.com/GameZero/tTDGf/0.2.1/
# GameZero.jl Workshop at JuliaCon 2021 (YouTube)
https://youtu.be/ar7wCVlncKE
########################################
# Links for this series
########################################
# Link to Series 4 Playlist [Julia Desktop Apps]
https://www.youtube.com/watch?v=jjJ2xHpxwHg&list=PLhQ2JMBcfAshlykxhEOLE3X-Izxyc1Nwu
# The Julia Programming Language
https://julialang.org/
https://docs.julialang.org/en/v1/
https://www.youtube.com/c/TheJuliaLanguage
# VS Code
https://code.visualstudio.com/
########################################
Notice of Non-Affiliation and Disclaimer:
I am not affiliated, associated, authorized, endorsed by, or in any way officially connected with The Julia Programming Language, Julia Academy, Julia Computing, Microsoft, or any of their subsidiaries or their affiliates.
Nor am I affiliated, associated, authorized, endorsed by, or in any way officially connected with any software, packages or libraries used in this video.
All marks, emblems and images are registered trademarks of their respective owners. Use of them does not imply any affiliation with or endorsement by them.
########################################
Join Button (Channel Membership):
If you like what I do, then please consider Joining and becoming a Channel Member.
https://www.youtube.com/channel/UCQwQVlIkbalDzmMnr-0tRhw/join
Thank you!