Today I started working on collectable items which are the main feature in this game project. Those will be used later to solve specific puzzles by enabling specific actions happening.
I have started with placeholder rectangles so that I can test the spawning collectables and creating some simple collisions before moving on. Initially I had some errors from which most adhered to 'this' keyword. I have discovered that this happens quite often as Javascript is loosely typed language and Phaser framework is very strict about those keywords, but playing around and trying out different solutions finally worked.
In order to enable correct collisions I had to create a collision group for collectable items. Later I will use this for all collectable item types. each item type will have its own name assigned so that it will not be mistaken for something else when used for solving puzzles. I have also encountered some issues while trying to manage those specific groups. Fortunately most errors I had were syntax errors and therefore quite easy to fix. I had also some issues with detecting correct collisions between specific items.
No comments:
Post a Comment