1. Obstacle instantiation and recognition of position.
- The obstacles are spawned in the furthermost section out of 4. Once spawned they measure which lane they are closest to and then identify as that lane. From there every set amount of time they start to move towards the same lane in a closer section. The game knows what to spawn and where by utilizing a system of arrays. A dynamic array that represents the upcoming wave of obstacles and then a master level array.
2. Bike movement on ground and air.
- The bike lerps towards a player point corresponded by the current lane number. When hitting a ramp the point will move up (really the focus changes depending on spot before elevating 0 goes to 7 1 to 6 etc.).
With this framework i should be able to get some levels relatively quickly. Simple arrays and tweaking obstacle properties through prefabs.
No comments:
Post a Comment