Code Monkey home page Code Monkey logo

chris_game's Introduction

chris_game

Small program to amuse my toddler son

First thing: Press q+z+p to quit.

Second: Yes, all it does it beep and draw shapes on the screen when you play with the keyboard :-)

The game starts at full-screen (currently hard-coded to 1920x1080, because I don't expect that anyone else will ever actually use this.

Different rows of keys play different notes, C5 - E6, I think (and only the full steps)

  • The number keys "1" -> "0" (both numpad and the number row) play a randomized waveform.
  • The keys "Q" -> "P" play notes generated by an abs(sine) function.
  • The keys "A" -> ";" play notes generated by the sine function.
  • The keys "Z" -> "/" play notes generated as a square wave.

The spacebar plays a random note in a random "instrument" (different one each time you press it)

All the other buttons on the keyboard that SFML recognizes play different notes depending on the keyscan code.

Also, different shapes and stuff pop up, then spin and fade away when you release the key.

chris_game's People

Contributors

skiny7 avatar khedoros avatar

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.