Skip to content

Instantly share code, notes, and snippets.

View RBrNx's full-sized avatar

Conor Watson RBrNx

View GitHub Profile
{
"repositories": [
{
"show": true,
"imageMain": "/project-images/fireworks.png",
"imageDrop": "/project-images/fireworks_2.png",
"title": "Particle System with Multiple Lights",
"description": "A 3D Environment showcasing particle Fireworks, and multiple lights.",
"carouselImages": [ "fireworks.png", "fireworks_2.png" ],
"aboutProject": "<p>This <strong>Particle System and Multiple Lights</strong> demonstration was created during my 3rd year of University, with the help of my fellow student <span class='fancyLink'><a href='http://nightshiftgames.co.uk/'>Mark Smellie</a></span>. We were tasked with creating three advanced graphics techniques which could be showcased in one application.</p><p>I chose to implement a <strong>Particle System</strong> which would simulate fireworks, each of which had a randomised colour, location and length of time until explosion. Mark chose to implement a scene which would feature multiple lights, each with their own colour and lum
@RBrNx
RBrNx / cleanup.sh
Last active August 3, 2020 12:13
Helper function to delete node_modules and re-install them
cleanup(){
if [[ -f "package.json" ]]
then
echo "Deleting node_modules..." && (rm -rf node_modules || echo "No node_modules to delete")
if [[ -n "$1" ]]
then
if [[ $1 = "npm" ]]; then (rm package-lock.json || rm yarn.lock || echo "No lock files to delete") && echo "Installing packages via npm..." && npm i
elif [[ $1 = "yarn" ]]; then (rm yarn.lock || rm package-lock.json || echo "No lock files to delete") && echo "Installing packages via yarn... " && yarn
else echo "Package manager '$1' not recognised. Aborting..."
fi