From 02455892dac1d52914e5702fd8e895d5cee1f083 Mon Sep 17 00:00:00 2001 From: FBeans Date: Sat, 21 May 2022 19:07:32 +0100 Subject: Add world, boid and all collision detection --- src/Main.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Main.php (limited to 'src/Main.php') diff --git a/src/Main.php b/src/Main.php new file mode 100644 index 0000000..5678111 --- /dev/null +++ b/src/Main.php @@ -0,0 +1,22 @@ +name()}` ({$world->width()} x {$world->height()})." . PHP_EOL; + + $boid = new Boid(5, 10, 10); + echo "New Boid Created. `{$boid->name()}` ({$boid->position()[0]}, {$boid->position()[1]})." . PHP_EOL; + } +} -- cgit v1.2.3