Skip to content

Instantly share code, notes, and snippets.

View abs-js's full-sized avatar
😐
i'm so so

abs-j abs-js

😐
i'm so so
View GitHub Profile
@abs-js
abs-js / README.md
Created August 2, 2024 19:13
VECTOR3 is an open source library for anyone using 3D design with JavaScript. Even if it is small, it can help your code to use fewer characters to calculate a normalized vector, for example. Go deeper and you will definitely find it interesting (be honest :P).

VECTOR3

VECTOR3 is an open source library for anyone using 3D design with JavaScript. Even if it is small, it can help your code to use fewer characters to calculate a normalized vector, for example. Go deeper and you will definitely find it interesting (be honest :P).

ALL functions

* normalizes vectors
* calculates the dot product
* add/subtract (necessary, right?)
  • simplifies in directions (you can doubt as many times as you want :D)

my phaser game

This mini game uses the javascript library phaser.js to be able to move the character, collect coins and power ups and win, the objective is to get to the flag as quickly as possible (located at the end level) in less time, collecting maximum coins.

how to play:

There are several game elements:

basic movement: left or right movements are made by ← and →. jump: you can't miss it, jump with ↑. coins: one of 2 forms of scoring, can be collected by tapping them (in total the game has 50). power ups: there are 3 different power ups: