not much progress, but ...
I ran into a typo that stopped me from not getting any progress done for several hours. In Unity, I was scripting with OnTriggerEnter2D, but I had the end 'd' lower cased (OnTriggerEnter2d) which is not the right spelling for the MonoBehaviour class. Originally, I thought the problem of not detecting the collision between my objects was some Unity Editor configuration. I have had these problems in the past where I had no ridged body on one or both game objects, or a collider is not set to trigger, or the mismatch of 2d and 3d systems. I spent several hours debugging something that was just a typo.
I am not too upset though. I am making progress, but I thought I would be a lot more polished right now. On the other note, after finding my typo, I am seeing some benefits programming with interfaces in my projects. Now I am able to work with an abstract Level class at a the Level Manager role. I want to also include Interfaces for Items, so I can start tracking many different types of objects for special interaction or inventory systems. Although I am using the singleton design pattern for cross class interactions, I know it is frown upon. I'm still explorer more OOP concepts. I still got to get comfortable with delegate and events, and how will these help me, in addition to interfaces, to be a better developer.
Right now I have a semi working prototype which I am not going to dive deeper in to changing up the game management structure, yet.. I am taking it slow on these higher level game logic is because I am also considering learning Unity's Entity Component System, so I see this game management framework I am developing can be implemented as a system in ECS, and I don't want to implement to much of these games in the traditional Unity Engine API set up.
Fortune-Hunter Infinite Runner
2d Infinite Runner
Status | Released |
Author | madlibrarian |
Genre | Platformer |
Tags | 2D, infinite-runner, Side Scroller |
Languages | English |
More posts
- Game Release - 2d Infinite RunnerAug 27, 2019
- switch up on game's objectiveAug 24, 2019
- progress updateAug 20, 2019
- Project AnnouncementAug 20, 2019
Leave a comment
Log in with itch.io to leave a comment.