Skip to content

A collection of improvement ideas #34

Open
@mreinstein

Description

@mreinstein

I don't know if you'd be up for any of these, so I'll just throw the ideas here. If you're game for any of them, happy to PR:

  • standardize on the vec2 module from gl-matrix - this would mean vectors would be [ x, y ] rather than { x, y }.
    it's nice in that it re-uses a popular vector module. I'm always a little saddened looking at various game/sim repos in javascript, and every one invents it's own vector/matrix libraries. :(
  • switch from Object-oriented to data-oriented design - rather than using classes to bundle code, the different primitives (sticks, dots etc.) essentially become structs, and the data structure gets passed in to all of the related functions

Will add more ideas as they come up., just wanted to throw these in as a starting point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions