FINAL Alien Cannibal

Jacksonfoxbland
2 min readMay 6, 2021

This final project was inspired by the backstory that I gave to my interactive arrays project for why the aliens were getting abducted by the another alien. In this sketch I expand on the story, which can be viewed by clicking on the captains log.

One challenge was that as I was getting ready to finish I realized that my score and captains log completely broke and were being translated relative to the mouse, completely breaking it. I isolated the issue down by //commenting out recently worked on lines of code and found that it was because of my alien function in the Abduction2 player class. I assumed it was a translate error of some sort and after digging realized that there was a push() with a commented out pop() inside of the alien function. Reactivating the pop() fixed the issue.

The high level logic, without getting too in the weeds, is that there are two classes for the aliens, Abduction and Abduction2(player). Abduction2 calls back to the Abduction class, drawing it within itself to get the bobbing spaceship in your tractor ray. Then is a class for the blood and one for the particle system that controls the bloods animation.

The most interesting thing I learned while making it was that I don’t know how to properly use deltaTime to animate and that frameCount works just fine

Inspiration for captains log
Inspiration for captains log2
Player model used
Previous project that inspired this one.

--

--