Monday, February 27, 2017

Duncan Post 2/16/2017


This week I merged all the work I had been doing into what Max had done in Dropbox. In doing so I had to change parts of my code again because Max had made changes to the movement system that effected how the player sprite interacted with the Ground prefab and script I had added to count the amount of ground that was painted. With almost all the changes to the game done that we need right now we also began to talk about level design and making a first level.



I also fixed an error where whenever Pojo touched the side of a Ground prefab an error would start spamming that said IndexOutOfRangeException - Array index is out of range. I had incorrectly done some of the math that detected whether or not Pojo was touching the ground. Where I defined touched I had added 1 and I hadn't taken that back into account when running this line:
 int idx = (int)((touched.Length * pos / (bounds.extents.x * 2.0)));
So I added -1:
int idx = (int)((touched.Length * pos / (bounds.extents.x * 2.0))-1);
and I fixed it.
With the projects merged we now plan on starting level design and making a first level which will be more tutorial based. We will also likely begin replacing some of the sprites that we just had as placeholders.

Tasks Completed

  • Fix bug that spawns errors
  • Fix bug that makes Pojo white
  • Change Pojo sprite collider so it works better with ground prefabs

Tasks to be Completed

  • Fix wall jumping Pojo

No comments:

Post a Comment