Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

cyprus

9
Posts
1
Followers
2
Following
A member registered Feb 08, 2019 · View creator page →

Creator of

Recent community posts

Its just brute force, definitely not well optimized

1) compute container polygon bounds and initialize a placement cursor at the top left

2) each frame, attempt some placements (incrementing by the 1st slider)

3) rotate the shape in small increments (2nd slider)

4) translate the rotated shape to the cursor position

5) Check if it fits inside the container and does not overlap packed shapes

5.1) if valid, store it, animate effects, and update counters

6) advance the cursor right, wrap to next row when hitting container width

7) stop when the cursor reaches the container bottom


Source if you want to look, itll probably make more sense
https://github.com/cyprus327/Packer/blob/9f8136adce4e3cb9f1984bb3a37397fa11b1b41...

knew it would be good when I used a light switch and it actually worked

we had similar ideas for our games, really good execution on yours and great style

I win !!

good bite sized game, I enjoyed it

really pretty game with a cool concept

really fun gameplay, also small thing but great thumbnail

really cool concept and great execution

really cool concept and fun execution

awesome game, looks like we had some similar ideas