GithubHelp home page GithubHelp logo

aagrawal05 / aiballpitswimmer Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 208 KB

An exploration into 2D swimming with AI, using the matter.js physics engine.

HTML 4.19% JavaScript 95.81%
ai matter-js neat-algorithm neataptic project simulations

aiballpitswimmer's People

Contributors

aagrawal05 avatar

Watchers

 avatar

aiballpitswimmer's Issues

Optimisations

Make it able to run faster in order to train faster and allow for new options to be implemented

Shared resources

All the agents interact with the shared balls, causing each individual's simulations to be to distorted, grid?

Fix render chunk logic

same problem of shared resources with the load new render bounds being shared by all agents - when to do so? highest max.x? avg?
Solutions:

  • Grid base solution
    • if done this way, no more offset counter and moving platform, fixed camera of the whole grid, and the every object moves
      based on how the agent moves - relatively in each of the grid as opposed to the player moving through and everything
      shifting over (player stays in center)
  • Brainstorm others

Collision Filtering

Make agents not able to collide with each other but able to collide with everything else

Add in ragdoll

See the ragdoll example in matter.js/examples/ragdoll.js

Camera Follow

Follow furthest player
Optimisation: check prevbest to not have to do n time

Working game loop, centered on agent (ragdoll),

Remove walls and make a short platform for agent to "dive off of". Make ball pit "flow" (loop around to the front, see examples, implement with camera to center agent while balls flow from right and teleport to the left).

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.