MENU

Fun & Interesting

Toasty Tumble Devlog #2 - Object Pooling & Unity Colliders

Rheyan's Gaming 42 lượt xem 1 week ago
Video Not Working? Fix It Now

Play Toasty Tumble free on Itch: https://rheyan.itch.io/toasty-tumble
Toasty Tumble Devlogs Playlist: https://www.youtube.com/playlist?list=PLyl8md3Lj3mroDqMYEeiUHMI7scc5m2FG
Learning Unity Playlist: https://www.youtube.com/playlist?list=PLyl8md3Lj3mq6HkQvSY_pPF8cYuDio4ti

Follow me on BlueSky: https://bsky.app/profile/rheyan.bsky.social
Follow me on Mastodon: https://mastodon.gamedev.place/@Rheyan
Follow me on X: https://x.com/cmiddlebrook

This devlog is all about spawning obstacles for Toasty to bump into. I've used the object pooling pattern which is much more efficient than constantly instantiating and destroying objects (overkill for this game but good practice). I wrestle with sprite positioning and colliders but get it working in the end.

Timestamps:

00:00 Intro
00:40 Spawning obstacles
03:06 Object pooling pattern
03:44 Fixing the spawning bug!
05:20 More on object pooling
06:20 Day 2 Retrospective
07:20 Is object pooling worth it?
08:50 Sprite Positioning
11:18 Unity colliders
14:00 Collision
15:20 Outro

## AI Generated Summary:

In this devlog, the creator discusses the implementation of object pooling and collision handling in the game 'Toasty Tumble'. They tackle challenges encountered during the coding process, demonstrate how obstacles are instantiated, and explain the debugging steps taken to solve movement issues. The video concludes with a preview of ongoing development work and plans for future features.

## Key Points

### Introduction to Object Pooling

The video introduces the concept of object pooling, which is used to manage obstacles in the game efficiently by instantiating them only once at the start, instead of repeatedly creating and destroying them.

### Obstacle Instantiation and Movement

The creator demonstrates how obstacles are instantiated at the start and moved across the screen. They mention a bug causing inconsistent speeds, which they are working to address.

### Debugging Issues

The creator discusses the challenges faced while debugging movement issues, including objects moving too quickly or being instantiated inappropriately due to the object pool mechanism.

### Collider System in Unity

An overview of the collider system in Unity is provided, with an explanation of how it influences collision detection for in-game objects. The creator emphasizes the importance of simplicity in collider design for performance.

### Playability Improvements

By the end of the video, the game is now playable, features collision detection, and gameplay mechanics are being developed. The creator expresses an ongoing commitment to refine the game's features, such as scoring and player lives.

Comment