Skip to content

extended playdate physics (circles, triangles) experimentation

Notifications You must be signed in to change notification settings

CMorooney/playdate_impulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wip playdate impulse engine maybe? C SDK

this project is/was meant to be a clean look at adding extended collision behavior to the Playdate SDK in such a way that making a pinball game might be supported.


running the project will get you this:


todo:

  • circle-triangle vertex collision check
  • actual/better AABB-triangle collision check
  • Circle rotation
  • OOB/box rotation
  • triangle rotation

at least kinda working:

  • circle-circle collision
  • circle-AABB collision
  • circle-triangle (edge) collision
  • AABB-AABB collision

to get started:

from root (if build directory doesn't exist: mkdir build && cd build && cmake ..

to build: from build directory: make

this will create pinball.pdx at repo root which can be opened in simulator. so, from build directory in macos I usually just make && open ../impulse.pdx for iterating


clangd LSP: compile_commands.json gets created in the build directory but clangd lsp expects it to be at repo root, so don't forget to create a symlink

About

extended playdate physics (circles, triangles) experimentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published