Big Game Project Week 7
Level DesignI have been helping the level designers to decorate the tutorial level this week. It was a lot of fun to focus on something else for a while. So in between some coding occasions I have spent some time on decorating the level. The tutorial level is very linear which made it easy to decorate it. I did therefor not need to think as much about if it would work for the player to come from all positions and angles. For example, I did not need to control if a tree would block the view from a certain position. Because that I wasn’t much limited on those details I spent more time on making it pretty. I also tried to give the obstacles in the level some history so it would feel more believable. In the picture below I made it look like there once was a railroad in between the hills. Now it has collapsed and the mine carts that has been going on the rails has now fall down and made a pile. And the pile now acts as an obstacle you need to jump over.
Tire MarksI finished the tire mark feature this week. It is basically a script that creates a mesh after the player so it looks like the player’s wheel is making some tire marks on the ground. At first I wanted to do it so that the triangles in the mesh were sharing vertices. I wanted to do it like that to save performance, but it created problems when jumping. When the player lose contact whit the ground the tire mark should no longer generates and if the vertices was shared it would then be linked together whit the landing spot creating this effect.
I was planning to fix this problem by creating extra vertices if the player had lost contact whit the ground, but my code structure was not that good and it got very complicated. Therefore I changed it so only the squares created of the two triangles next to each other shared vertices.
It was a lot easier to code and worked really great. It will be a little bit heavier to render because more vertices are made from it, but my code for creating the mesh probably got faster instead so it may not affect performance at all.
|





