Giter Site home page Giter Site logo

aronnax-deprecated's People

Watchers

 avatar  avatar

aronnax-deprecated's Issues

Create a system possibly a class for having unique ids on all main game objects

Objects such as entities and maybe even particles should all be ID'd. This could maybe come in the form of a mixin class or an inherited class. There will also need to be a static property or class to correctly increment the id numbers.

This could be useful in hashing and linked list data structures. The linked list data structure could keep a hash table of the objects and ids for quick and easier lookup. The linked list class should still be available to take vanilla objects, so it should only be extended for ID'd objects.

Don't use real console in logger test

The logger test is using the real window.console and actually outputting. Using mocks to changes this so it doesn't actually log would be much better.

Modify the Pooling so objects of a certain class returned have the correct prototype set up

Currently, when an object is returned from a pool, it's an empty object and has no prototype. It should have it's prototype set to the base classes prototype, so that only the instance specific properties need to be copied over. This will help with performance. The main properties of the base class should not be extended by copying though they should be on the prototype.

Setup a JS framework

Google Closure:
There are some complications with setting up the correct folder directories: Google closure wants files to be saved all the the same directory as closure. I want closure to be in a separate lib directory. This article explains a solution to this:
http://www.bdoran.co.uk/2011/11/28/introduction-to-googles-closure-tools/

The closure builder and dependency management tools should be used. Using the grunt closure tools plugin is probably the best way to go. This will be switched out from current closure task:
https://npmjs.org/package/grunt-closure-tools

Set up deps require locations so it's read as a separate json config file

The deps range of modules are all dependencies that are being injected into the system at various points. Currently they are being configured on an individual basis in the requireJS config for only one environment. Modify this so that the configuration for them is in a separate json file based on environment so they can be switched around with relative ease.

Create a wrapper class for handling errors

It could either hook into javascript throws, or it could be called directly and it would pick how errors are handled. Could have multiple options for how much it reports.

Move the log writer deps to the log

Currently the log writer dependency is set on the static logger class, rather then the individual log objects which actually use the logWriter.

Create the Pooled class to augment objects

The interface will be something like this:
NewObject.make(params);
Array.make(params);

So there will a new function that gets added to any constructor that will receive the new functionality. It would be nice if this function augmented the base object so this make function would not need to be created any time it inherits from Pooled.

Another decision is if the object should use mixins or other inheritance.

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.