Code now using a crate class
Cleared out all unused code
now using pointers to objects rather than objects
destructor now brought in in stead of ‘destroy’ function
added a ball and chain
added functions for wrecking ball setup and drawing and added comments
crates no long spawned in by player instead randomly generated into a triangle on start. Crane no longer controlled with mouse but with the keys (force added via a vector)
Made the window bigger (updated background image to come), removed as many hard coded variables as necessary and replaced them with variables, added more comments
attempted to add in sound functionality from the contact listener example but it doesn’t work, have an if statement stopping a bad access error but as a result no sound is played
Sound now working though causes an error in reset, erroneous line commented out for now, six elf crates now able to be set easily, images scale accordingly
Changes:
- Sound changed to only play when wrecking ball makes contact with a box rather than when a box makes contact with anything, now 80% less deafening :D
- Pyramid of boxes changed to a more standard tower, makes collapsing more fun
- Size of boxes now changed in proportion to the size of the tower they build so you can have larger/smaller towers more easily
Changes:
- new artwork added for crane and background
- new sound for wrecking ball collision
Note* moving back to main repository now that sound and classes work fine