MAD: Game DevLog #5
Hello,
I don't think I'd like to invest time and resources in this project anymore, I had fun programming it and learning about different aspects of game development and the Unity game engine.
Making games involves a lot of hard work and I initially started this in order to escape from my ordinary programming activities, to do something different.
Next, I think I'm going to shift my focus to some areas that will benefit the development of my career, like, trying to learn more about computer security and getting better at solving problems.
If you wanna checkout the game you can do on itch.io
I'd like to thank Andrei, Maxi and everyone who supported this project!
Before ending this article, here's some Unity tips we've found useful while working on this game:
Make an atlas for prefabs to instantiate
Instead of setting prefabs to game objects manually in the editor, which is prone to error, you can make a static class to hold each prefab, this way can Instantiate all your prefabs programmatically.
public static class PrefabAtlas { /* Snow Walls */ public static readonly GameObject DestructibleHighSnow = Resources.Load<GameObject>("Walls/destructible_high_snow"); public static readonly GameObject DestructibleSnow = Resources.Load<GameObject>("Walls/destructible_snow"); public static readonly GameObject IndestructibleWoodCrate = Resources.Load<GameObject>("Walls/indestructible_crate"); }
Instantiate(PrefabAtlas.DestructibleSnow)
Avoid classic singletons.
If you want to use classic singletons for your game logic or state then you may get things messy, depending on your specific use case, because Unity manages the lifecycle of MonoBehaviour classes.
To create a singleton in Unity you can inherit from Singleton:
public class MySingleton : Singleton<MySingleton> { // (Optional) Prevent non-singleton constructor use. protected MySingleton() { } // Then add whatever code to the class you need as you normally would. public string MyTestString = "Hello world!"; }
Thank you!
Image by Steve Buissinne from Pixabay
References:
Files
Snowpiercer: In search of Gaspar
Classic strategy and maze game
Status | In development |
Author | Denis |
Genre | Strategy |
Tags | 2D, Arcade, bombs, NES (Nintendo Entertainment System), Pixel Art, Retro |
Languages | English |
More posts
- MAD: Game DevLog #4: Juicing UpAug 24, 2019
- MAD: Game DevLog #3: Mobile ControlsAug 24, 2019
- MAD: Game DevLog #2: Unity WorkflowAug 24, 2019
- MAD Game DevLog #1: AssetsAug 24, 2019
- MAD: GameDevLog #0: IntroductionAug 24, 2019
Leave a comment
Log in with itch.io to leave a comment.