Giter VIP home page Giter VIP logo

goobemaster / kodenkel-fo-hacking Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 3.0 391 KB

Clone of the Fallout hacking mini-game, rendered into a browser canvas.

License: GNU General Public License v2.0

JavaScript 1.48% Shell 0.24% HTML 14.70% TypeScript 83.57%
game open-source-game open-source-games word-game word-games remake remakes fallout-3 browser-game browser-games retro canvas-element frameworkless typescript puzzle-games keep-it-simple-stupid

kodenkel-fo-hacking's Issues

Mobile Browsers?

Doesn't seem to work on mobile browsers.
Tested with Chrome 96, Android 10.

Chance of entering an infinite loop in removeDud

Pre-condition: Only one word left to guess: the correct password.
User Action: The user finds a block. The game decides to remove a dud.
Actual Outcome: There's no more dud to remove. The program is frantically attempting to find a dud to remove.
Expected Outcome: The program realizes that there's no more dud to remove, and therefore bails out.

Problematic lines:

this.removeDud();
return;

Should be prevented early (and offering reset tries instead; not that it matters, because there's only one word left):

this.removeDud();

Scan line (dubbed gauss) shouldn't reset

Minor visual annoyance. When the user clicks the reset button, the scan line that appears at random intervals disappears mid screen. The scan line should go all the way. The button is meant to act like a virtual soft reset. :)

Duplicated passwords shouldn't be picked during reset

Due to the huge number of words duplicated passwords rarely occur, but its still an issue.

Luckily, if the correct password happens to be one that is duplicated, the player may choose any one of them, only the letters are considered by the game. Nonetheless, this should be fixed eventually.

Relevant lines:

// Word
randomWord = possibleWords[Math.floor(Math.random() * possibleWords.length)];
wordSoup += randomWord;
this.passwords[i] = randomWord;
this.wordCount++;
wordSpacing = 0;
i += randomWord.length - 1;

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.