A screensaver of different interactable falling treats through keyboard presses and sliders.
CMSC 161 B2L
- Dayag, Van Paul
- Dalangin, Martin Ivan
- Evangelista, Lae Nicole
- Miranda, Myka Ricci
- Pascual, Jemimah Lorelai
- gl-matrix
- package containing functions designed to perform vertex and matrix operations.
- webgl-obj-loader
- A simple script to allow easy importing of object files to web.
Visit the link here
Fork this repository and add you changes to your own fork. Then send a pull request to this repo.
- Download NodeJs v18
- Download libraries.
npm install
- Start develop view.
npm run dev
- Light Direction
- the light direction can be adjusted by the user upon adjusting the slider through the click and drag.
- Rotation Direction
- the direction of rotation of an object can be adjusted upon user's discretion by pressing the arrow keys of their keyboard. Clicking the
arrow up
key will rotate the objects along the x-axis. Thearrow down
key will rotate the objects along the y-axis. thearrow left
key will rotate the objects along the z-axis. Lastly, thearrow right
key will roate the objects along the xy-axis.
- the direction of rotation of an object can be adjusted upon user's discretion by pressing the arrow keys of their keyboard. Clicking the
- Number of Objects Falling
- the number of objects rendered can be adjusted by pressing the
-
key for decreasing the number of objects or+
key for increasing the number of objects rendered.
- the number of objects rendered can be adjusted by pressing the
- Direction of translation/movement of objects
- the direction of translation of an object can be altered by pressing the
s
andw
key. Pressing thew
key would cause the objects to move upward while pressings
would cause the objects to move downward.
- the direction of translation of an object can be altered by pressing the
- Light and Dark Theme
- The screensaver has a light theme and dark theme that can be toggled just by clicking the
T
key.
- The screensaver has a light theme and dark theme that can be toggled just by clicking the
- Pause and Play
- The screensaver can be paused or played just by pressing the space bar.
- Object Add/Remove Onclick
- Screensaver objects can be added on the area where the
left mouse click
is clicked. On the other hand, clicking theright mouse click
will remove the recently added object.
- Screensaver objects can be added on the area where the
- Object X axis movement
- Object would move to the left when
A
is pressed and would go right whenD
is pressed.
- Object would move to the left when