DivinityCodes

Pig Stack Game Prototype

Physics based stacking prototype where players balance pig shaped blocks to build stable structures and survive timed balance challenges.

  • Physics Based
  • Stacking Game
  • Casual Prototype
  • Balance Mechanics
  • Mobile Game
  • Rigidbody Physics

Game overview

Playful physics-based stacking game where players balance a series of pig-shaped blocks to build a stable structure. Achieve balance for a set duration to win each level!

In Pig Stack, you stack different shapes—rectangles, circles, triangles, all styled as charming pigs. Stack all pieces successfully and maintain the structure for 10 seconds to conquer the levels.

Features

  • Physics-based gameplay: Experience the challenge of physics-driven stacking with a fun twist—every piece is a pig!
  • Easy level creation: Utilize scriptable objects for rapid and flexible level design, making game development and iteration smooth and straightforward.

Adding new levels

Learn how to add and customize levels easily by watching the tutorial video ( YouTube).

How it works

GameController

The GameController script serves as the heart of Pig Stack, orchestrating game flow and managing levels:

Level design

Each level is defined as a scriptable object, allowing for easy adjustments and quick additions of new challenges:

Unity Project window — twelve Level scriptable object assets in the Levels folder
Unity Inspector — Level asset: ordered list of block types and sizes for level layout

Conclusion

Pig Stack is not just a game but a platform for creativity and experimentation in level design and gameplay mechanics. Dive into the source code, tweak parameters, and tailor new levels to expand the Pig Stack universe!