Skip to content

hope8hope/Cursor-Threat-Cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Threat Cat

A browser mini-game where the cursor behaves like a threat and a cat NPC reacts in real time.

Features

  • Finite state machine: IDLE, SUSPICIOUS, AFRAID, PANIC, HIDDEN
  • Dynamic fear, memory, and comfort model
  • Reaction to cursor proximity and sudden approach speed
  • Cat emotional animation that changes per behavior state
  • Room scene with furniture as real cover objects
  • Runs directly in browser (no build step)

Controls

  • Move the mouse to interact
  • Slow movement calms the cat
  • Fast movement increases fear and panic

Run Locally

  1. Open index.html directly in a browser
  2. Or run a local server:
python -m http.server 8080

Then open http://localhost:8080.

Project Structure

  • index.html - canvas bootstrap and page shell
  • main.js - game loop, AI/FSM, rendering, interactions
  • README.md - project overview and usage
  • LICENSE - MIT license
  • .gitignore - common local/system ignores

Media

Add screenshots or GIF previews to the assets/ folder and reference them in this README.

Roadmap

  • Scene switch (room / street)
  • Sound effects and ambient audio
  • Mobile touch input support
  • Fine-tuned behavior presets for different NPC personalities

About

Canvas mini-game where a cat NPC reacts to cursor behavior: fear, panic, hiding, and adaptation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors