Giter Club home page Giter Club logo

css3d-game's People

Contributors

pkalogiros 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

css3d-game's Issues

Shabby torch did not seem clickable

Tested on: Firefox 80, Chromium 84

Down in the sewers after staying still when the monster approaches, there is a shabby torch that can be picked up.

Other than all previous items that can be interacted with, this one does not change the cursor on hover.

[style] game.LOG is why we have ES6 rest parameters

Please use ES6 for game.LOG: pwfisher@1a24cda

    game.LOG = (level, ...rest) => level < _log_level && console.log(...rest);

This is painful:

game.LOG = function ( a,b,c,d,e,f,g,h,i ) {

      game.LOG = function ( a,b,c,d,e,f,g,h,i ) {
        if (a > _log_level ) return ;

        var log = console.log;
        if (i !== undefined) { log (b,c,d,e,f,g,h,i); return ;}
        if (h !== undefined) { log (b,c,d,e,f,g,h); return ;}
        if (g !== undefined) { log (b,c,d,e,f,g); return ;}
        if (f !== undefined) { log (b,c,d,e,f); return ;}
        if (e !== undefined) { log (b,c,d,e); return ;}
        if (d !== undefined) { log (b,c,d); return ;}
        if (c !== undefined) { log (b, c ); return ;}
        
        log( b );
      };

Why not use ES6? It's 2020. ES6 is vanilla javascript. No need to restrict yourself an archaic style.

Sticking with ES5 only gets you IE11 support and you can get that with webpack if you need it for some reason, and still author ES6 for more readable (better) code.

If you want to be readable:

      // level = priority rank (0 = error, 1 = alert, 2 = warning, 3 = info, 4 = debug)
      // _log_level = verbosity setting
      game.LOG = function (level, ...rest) {
        if (level < _log_level) console.log(...rest);
      };

ES6 and formatting

Automate code formatting. Use Prettier with VSCode: pwfisher@e3a515b

Multiline interpolated string wanted:

html = '<div><div class="inl-bl"><span onanimationend="GAME.ACTIONS.nextLine(this,' + line_delay + ')" class="' + clss + extra_class + '">' + target_txt + '</span></div></div>';

Key/property shorthand wanted:

var ASM_stdlib = { Math: Math, Float64Array: Float64Array, Uint8Array: Uint8Array, Uint32Array: Uint32Array };

const ASM_stdlib = { Math, Float64Array, Uint8Array, Uint32Array };

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.