Skip to content

DZ84/flying-dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

flying-dots

Dennis Zethof - Januari 2019

Can be visited at druqtemaker.com.

General info

The main focus of this specific project is to get the collision detection algorithm right, this is a test setup, and by all means not finished.

General functioning: this code scans all the dots, determines if there will be any collisions, performs the collision earliest in time, re-evaluates the new situation caused by the collision, then performs the next earliest collision, re-evaluates etc.

Options: by default the maximum amount of dots is set at 100, you can easily set "settings_maximum_dots" to about 150. Similarly the speed can be adjusted by searching for "set_speed". But adjusting those will affect performance.

v0.60

Got it to run quite a bit more efficient. The main improvements were in the functions:

  • get_rounded_number
  • remove_old_grid_positions
  • weave_grids_together
  • check_redo_position (now with hash maps)

and lessened the amount of calls get_rounded_number got.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages