Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hocus-Pocus? Focus

Sigma Hacks 2020

Author: Aparna Kumar

Description

About Hocus-Pocus-Focus

HPF is a multi-layer software that combines gamification and the Pomodoro Technique to make productivity fun. The pomodoro technique suggests a period of 25 minutes working followed by a 5 minute break, a process that is automatically implemented by HPF.

Here's the game:
You are among one of the first humans to be living on Mars! However, this life of adventure comes with its own struggles. Your mission on Mars involves growing a garden and gathering samples while also keeping yourself healthy. How does it work? Well, it's simple:

  • During the 5 minute break, you will play a mini-game. The goal of the game is to catch as many of the moving samples as possible before the five minutes run out! Doing so helps you gain EXP (experience points) that you need to reach the next level. However, this is hard labor, and it drains you health.
  • You can regain lost health by focusing during the 25 minute work period.
  • Everytime you reach a new level, you will grow one new fruit!

Video: link

The Technicalities-- How it was made

HPF was made through a combination of JavaScript, HTML, and CSS. For this software, I took advantage of the p5.js library (link) and the p5.collide2D library (link).

The Files

  • README.md - This file!
  • index.html - Html page base structure.
  • sketch.js - Main code goes here.
  • style.css - CSS styles for the page.
  • game-1.js - the minigame (completely separate from the one in sketch.js)
  • p5.collide2d.min - a p5js library
  • p5.min - p5js

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages