Devlogs
Login

Advanced 2D Camera Controller // Unity Devlog #9

Siege Physics Devlogs EP 10 12/22/19
Login to Follow

Play the demo: https://trickshotlabs.itch.io/siege-physics-demo
Join the discord and help test the game: https://discord.gg/bgz9bPY

In this devlog: improving the camera controller, creating a title screen, and implementing more advanced circle connections!

👉 Follow me on Twitter: https://twitter.com/SamHGames

🎵 MUSIC 🎵
→ "Dance to Your Heart's Content" by TechnoAxe: https://www.youtube.com/watch?v=w6jWjYVEyJ4
→ "Heavy Brigade" and "The Power and the Glory" by Purple Planet Music: https://www.purple-planet.com
→ "Jerry Five" by Kevin MacLeod: https://incompetech.com

👨‍💻 IN THIS DEVLOG 👨‍💻
For a long time, I've only used a simple camera follow script for tracking the player. In this game, the ragdolls can be flung around in all kinds of ways AND you have the ability to control the camera zoom, which made this simple solution not quite enough. I ended up combining two different ideas: track a position that smoothly follows behind the player and add on top of it an offset value to frame the scene. Secondary additions include auto-zooming to keep the ground in view or when the player has a high velocity, as well as the use of raycasts to locate the ground.

I also created a basic title screen, and improved the connection forming of circular shaped objects.

Should I change the game's name? A good name describes the game well, is pronounceable, memorable, and searchable. I don't think the current name "Siege Engineer" checks all of these boxes. "Siege Sandbox" won the twitter poll, and it visually looks cool, but it's kind of awkward to say too. I'm probably overthinking this lol. "Siege Physics" is growing on me. Leave a vote in the poll in the video!

🎮 GAME INFO 🎮
Siege Engineer is a 2D physics-based puzzle game I'm developing with Unity. You are tasked with building siege engines to transport the ragdoll foot soldier across enemy territory. Fed up with his siege engine genius being ignored due to his low status in feudal society, our protagonist has decided to single-handedly take over kingdoms and stuff.

To play, drag objects from an inventory into the scene and connect them together. Press play to watch chaos ensue. Create catapults, trebuchets, vehicles, and much more