MCPcopy Index your code
hub / github.com/akarlsten/cuberun

github.com/akarlsten/cuberun @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
37 symbols 102 edges 27 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cuberun

Avoid the cubes while the speed progressively increases! Can you beat the rainbow level?


Winner of the 2022 React Open Source Awards in the category Fun Side Project of the Year!


The game is inspired by an old flash game I used to play in the late 2000s called Cubefield. My version is in full 3D and built with React, THREE.js and react-three-fiber to glue them together.

I went for a synthwave aesthetic, including some self-composed music, which the visual effects are synced to (so turn the music on!).

Also features high scores stored locally.

The development process will be detailed on my website.

Screenshots

Controls

  • Left: A, LeftArrow

  • Right: D, RightArrow

Touch devices have on-screen controls.

Core symbols most depended-on inside this repo

levelColor
called by 10
src/components/Arch.js
randomInRange
called by 6
src/util/randomInRange.js
useKeys
called by 2
src/components/KeyboardControls.js
getSpeed
called by 2
src/components/html/Hud.js
getScore
called by 2
src/components/html/Hud.js
makeWall
called by 2
src/util/generateFixedCubes.js
makeTunnel
called by 2
src/util/generateFixedCubes.js
distance2D
called by 2
src/util/distance2D.js

Shape

Function 37

Languages

TypeScript100%

Modules by API surface

src/components/GameState.js6 symbols
src/util/generateFixedCubes.js5 symbols
src/components/KeyboardControls.js4 symbols
src/components/html/Overlay.js2 symbols
src/components/html/Hud.js2 symbols
src/components/Sound.js2 symbols
src/components/Music.js2 symbols
src/components/Arch.js2 symbols
src/util/randomInRange.js1 symbols
src/util/distance2D.js1 symbols
src/components/html/GameOverScreen.js1 symbols
src/components/html/CustomLoader.js1 symbols

For agents

$ claude mcp add cuberun \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact