Code Monkey home page Code Monkey logo

gb_echo's Introduction

A game for the Unofficial GBJam 2017 [https://itch.io/jam/unofficial-gbjam1]

An attempt to create a game without any graphics, apart from a simple start screen
with instructions.

The idea is to navigate a maze using a very simple echolocation system.

left/right to turn. step forward with up. A to tap but remain in place.
These three actions make noise. For each noise, we work out the distance to the next wall
in front, left and right of the player. We use this distance to generate a lag time
and volume for the return noise.

We have three sound probes, and three tone generators (we'll be using the custom wave
generator as a third square wave tone generator).
We map the two main tone generators to the left and right output channels,
and the custom generator to both (at reduced volume?).

Main game loop is greatly simplified due to not needing to base around vsync:
	poll for keypress
	react to keypress
	play noise
	calculate lags, assemble into list of what tones to play when
	sleep loop to each tone change point, until all tones have been played
	return to polling for keypresses

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.