Giter Club home page Giter Club logo

switch's Introduction

Switch

Binary Lamp Switch Game - Crewate Binary Numbers (from 0 to 127) using Lamps :3 With each Iteration your time becomes less :3 Every 10 seconds the time gets less unless you just have 10s uwu

Showcase

Controls Desktop Version

ESC - naviagte Back to menu

Arrow Keys Up/Down: Navigate Main Menu

Enter/Sapcebar: Confirm selection in main menu

ArrowK Keys Left/Right & Sapcebar/Enter: navigate in Tutorial

0...7 Number Keys: Toggle Swicthes in Single Player

Game Loop

  • The game generates a random decimal number like 42
    • You have to translate this number into binary using the lamps
    • lamp on = 1 * 2^x, lamp of = 0 * 2^x (x beeing the exponent beeing equal to the lamps number) * Note: the lamp counts from the side where the arrow is pointing to the lamp row, the arrow defines the endianess of the lamp row
  • when you have corectly replicated the number the remaining time will be added to your score
    • on every 10 iterations your time will get less, but you will always have atleast 10 seconds for a number
    • there is a actually a point where the game will end ;3

Multiplayer

Play together to solve numbers

Supported Plattforms

Plattform Status Supported Tested
iOS Testflight ✔️ ✔️
MacOS Testflight ✔️
Android WIP ✔️ ✔️
Windows WIP ✔️ ✔️

Compiling for iOS

NOTE: Pls edit the build version in the project file to not be the same as the version number

Compiling for Android (apk)

NOTE: Keystore requiered

Development

Map Generation

Pairing Lamps and Switches

Each lamp becomes a random switch assigned, one random lamps becomes a second random switch

graph TD;
    A[Lamp 1] --- B[Switch 1];
    A[Lamp 1] --- C[Switch 2];
    D[Lamp 2] --- F[Switch 3];
    E[Lamp 3] --- G[Switch 4];
Loading

Drawing Wires

  • p0': Position of the lamp lx

  • p0: Position of the lamp + padding pad1 (since we dont want the line to start in the middle of the lamp but rather bvelow the lamp)

  • p1: p0 extended on the y-axis to the assigned level fx

  • p3': Center Position of the Switch sx

  • p3: Postion of sx with padding pad2

  • p2: p3 extended on the y-axis to the assigned level fx

block-beta
   columns 3
   P0 space space 
   space space space
   P0' space space 
   space space space
   P1 space P2 
   space space space
   space space P3
   space space space
   space space P3'


    P0("P0") --- P0'("P0'")
    P0'("P0'") --- P1("P1")
    P1("P1") --- P2("P2")
    P2("P2") ---P3("P3")
    P3("P3") ---P3'("P3'")
Loading

Game Options

  • Endian Switching (Changes the direction form where you have to read the number in binary)
  • Sound Settings

Requierements

  • Gdoot 4.2.2

Asset Sources

Ping Sound - Pixabay

Background Sound - Pixabay

Lex Font

switch's People

Contributors

dragoncat4012 avatar

Watchers

 avatar

switch's Issues

Game Options

  • switch endian
  • switch maps
  • select specific map

Multiplayer Koop

  • Add Number
  • add lamp descriptions
  • create map (2 overloading)
  • add achievemtn for winning a koop map
  • add back button
  • left side line to lamp too far

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.