Git Product home page Git Product logo

r3f-spotify-game's Introduction

Logo

next-audio-game

Demo video »

This game was made with the ambition of getting more familiar with 3D content on the web. The game itself draws inspiration from the classic game AudioSurf.

A Spotify Premium subscription is required to play the game.

Technologies

  • Next.js 12
  • NextAuth.js
  • react-three-fiber
  • glsl shaders
  • Spotify API
  • Chakra UI

Getting Started

  1. Clone the project
  2. Create a .env.local file in the root of the project. Instructions can be found in .env.example
  3. Install dependencies by running yarn
  4. Start the game by running yarn dev

Screenshot

my screenshot

Controls

Change lane with A,S,D or ⬅️ ⬇️ ➡️

Contributing

Contributions are more than welcome!

Attributions

This project was bootstrapped with create-r3f-app

Road shader by Daniel Velasquez via tympanus

Space Craft Speeder by Kenney CC0 via Poly Pizza

r3f-spotify-game's People

Contributors

dependabot[bot] avatar filahf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

r3f-spotify-game's Issues

bug report: repo currently inoperable

package install only works with --force, and breaks upon game loading after spotify verification. appears to be an issue with chakra-ui which utilizes @emotion-styled.

error I receive after spotify verification:

Unhandled Runtime Error
ContextError: useStyles: styles is undefined. Seems you forgot to wrap the components in <StylesProvider />

Source
src\hooks\useSpotifyPlayer.ts (34:6) @ window.onSpotifyWebPlaybackSDKReady

32 | })
33 |

34 | useStore.setState({ spotifyWebPlayer: player })
| ^
35 |
36 | player.addListener('not_ready', ({ device_id }) => {
37 | console.error('Device ID has gone offline', device_id)

installation error (no --force tag just npm install):

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @chakra-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR! peer react@">=16.8.6" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/accordion
npm ERR! @chakra-ui/accordion@"1.4.12" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/react
npm ERR! @chakra-ui/react@"^1.8.6" from the root project
npm ERR! 1 more (chakra-ui-steps)
npm ERR! 89 more (@chakra-ui/alert, @chakra-ui/avatar, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=18" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/system
npm ERR! @chakra-ui/system@"^2.6.1" from the root project
npm ERR! peer @chakra-ui/system@">=1.0.0" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/accordion
npm ERR! @chakra-ui/accordion@"1.4.12" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/react
npm ERR! @chakra-ui/react@"^1.8.6" from the root project
npm ERR! 1 more (chakra-ui-steps)
npm ERR! 37 more (@chakra-ui/alert, @chakra-ui/anatomy, ...)
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@">=18" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/system
npm ERR! @chakra-ui/system@"^2.6.1" from the root project
npm ERR! peer @chakra-ui/system@">=1.0.0" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/accordion
npm ERR! @chakra-ui/accordion@"1.4.12" from @chakra-ui/[email protected]
npm ERR! node_modules/@chakra-ui/react
npm ERR! @chakra-ui/react@"^1.8.6" from the root project
npm ERR! 1 more (chakra-ui-steps)
npm ERR! 37 more (@chakra-ui/alert, @chakra-ui/anatomy, ...)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I'll keep playing with it while I hope for a reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.