Coder Social home page Coder Social logo

balloons_buster's People

Contributors

alex-eg avatar moonburnt avatar

Watchers

 avatar

balloons_buster's Issues

Fix windows CI

commit 56d58a6 has made changes to building for windows - instead of relying on mingw, windows builds should now use visual studio. Which messed with existing CI workflow, and thus windows CI should be updated to work again

Objects removal on collision sometimes doesn't work

Commit 0fd0d4a has introduced collisions, reimplemented with box2d. And, while things generally work - sometimes they don't.
To be precise - this particular part is bothering me:

if (this_view.contains(collision->entity_id)) {

It works most of the time, but sometimes it either refuses to delete objects, or refuses to find object with provided entity_id in storage. Collisions still register and BallComponent's draw calls still work, but direct call to find entity with provided id in a view returns negative results.
Maybe I've misunderstood the part about how to toss entity ids around?

Add gravity shenanigans

Right now, movement of balls is based on their initial velocity:

const auto velocity = b2Vec2{direction.x*speed, -direction.y*speed};

Which kinda works, but also have following issues:

  • Balls lose momentum over time (the more they collide with eachother - the worse this effect gets)
  • Balls move at random, there is no real gravity simulation and it looks hella unrealistic.

Thus, I purpose the following changes:

  • Add gravity, rework balls to be light enough to fly naturally/have antigrav effect instead of relying on initial push force.
  • Add wind with varying speed and direction that may or may not exist on level (having strong wind adds extra points for difficulty).

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.