Skip to content

A simple 2D sandbox with simple physics and a GitHub generated name

License

Notifications You must be signed in to change notification settings

fianalins/congenial-goggles-2D-Sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

congenial-goggles-2D-Sandbox

A simple 2D sandbox with simple physics and a GitHub generated name

What this is

This is a sandbox with a physics engine all in one html file.

Go to the GitHub Pages site to use

What it contains

11 shapes,

  1. Circle
  2. Square
  3. Rectangle
  4. Triangle
  5. Star
  6. Pentagon
  7. Hexagon
  8. Heptagon
  9. Octagon
  10. Nonagon
  11. Decagon

properties for the objects,

  1. Mass
  2. Size
  3. Bounciness
  4. Friction

4 different tools,

  1. Weld Toggle
  2. Unweld Toggle
  3. Delete Toggle
  4. Clear all

and a gravity slider in the options tab (more to come maybe).

What it is for

To see how to code in something other than Lua and Flixel for once.

Controls

Controls are as simple as can be.

F - Freezes/unfreezes objects while being held/selected Left MB - Drags objects, selects them

Bugs, kind of

Some bugs that I'm too lazy to figure out (for now maybe)

Selecting Objects

Sometimes, when deselecting an object (mainly when clicking in whitespace, haven't had it happen when clicking a different object), the object previously selected will stay highlighted, but not actually selected.

To remove the highlight, click the object again.

Frozen Objects

Sometimes, when freezing an object, then selecting a different object, the frozen object will stay highlighted green even though it is not selected.

To fix this, click the object again, then it will return to blue.

Credit(s)

Programmer - fianalins (me)

I am the only one.

About

A simple 2D sandbox with simple physics and a GitHub generated name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published