Skip to content

gale93/randballs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this ?

Balls ! Just a playground for testing stuff and performances. Each ball randomly changes its color. On collision if they have the same color they merge, otherwise bounce. Try it now

A short video about this:

Randballs video url

I am using SFML for rendering and EnTT for entities management and some few handmade classes that act like an "engine".

Controls

[Left Mouse] Press and direct to spawn balls
[A] Spawn 500 balls
[Space] Delete balls in an Zone
[Middle Mouse] Spawn a portal
[Right Mouse] Collapse balls in a zone
[Q] Hold and cast away all balls in a zone
[T] Toggle text

Todo List

  • Implement Quadtree for collisions check It's rudimental and handmade but for now is fast enough. Check it here
  • Endorse graphic ( switching to textures ? )
  • Improve spawn balls options
  • Add obstacles
  • Add Portals
  • Add special effect based on color
  • Add a mass based on shape size. This is pretty bad handled atm
  • Let the physics variables be scriptable from the user such as these
  • Add any cool effect I can think about
  • Implement a more-likely-real collision response
  • Interactive way to spawn balls

How to build

I'll add a VS solution later, but it's pretty simple: Just link sfml and include EnTT folder into Headers