Giter Site home page Giter Site logo

cpl-games's Introduction

hello, world!

For an overview of my projects and stuff check out my website tjz.scripts.mit.edu

cpl-games's People

Contributors

claudiafer avatar deren-m avatar josue2020 avatar mystax avatar travisjayday avatar zamoreri000 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

cpl-games's Issues

Run level input is glitchy sometimes

When you play the run level and press the UP key, then quickly press the DOWN followed by the UP key while still in the air, glitchy stuff will happen. The player travels through the floor, flies in the air, etc. Basically quick repeated UP/DOWN input is glitchy. Needs fix. @ZAMORERI000? If you don't have time, I'll take a look at it. Let me know.

In Run Level code, remove constants, use variables instead

Please try to make your code as general as possible, e.g. do not hardcode numbers if not absolutely necessary. Later, if we want to support different screen resolutions on different devices, it'll be important to be able to easily change the sizes of objects.

@ZAMORERI000 , please look at the following files:

  • mig_ghost.js (width, height hardcoded)
  • player.js (death position hardcoded)
  • pit.js (width height hardcoded)
  • flying_ghost.js (width, height hardcoded)

then update the hardcoded values (for collision?) in run_level.html with the newly created class variables

In Fly Level code, clean up code, merge pipes and remove constants

@Josue2020 Please merge top and bottom level pipe classes. Two classes for basically the same thing is a bit overkill I think. Also, try to

  • add more comments
  • use semi-colons after each statement
  • put spaces after commas, spaces before open curly braces, space after if, while, for, etc.
  • insert newlines after a close curly brace
  • write class-names are upper case

ik it seems nit-picky but it'll make the code look way cleaner ;-) I formatted the bottom_pipe.js file for you for a reference.


Additionally, is it possible to make the pipe-spawning a bit more screen-size independent? without so many constants? I'm seeing a lot of hardcoded numbers that will break when we change the screen resolution.

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.