This week we started working on the new prototype for the
house wrecking game. I worked on making objects randomly drop a coin when it’s
smashed. This code will then be used to update the score when a coin is
collected. I had to wait to put my code into the project because it relied on a
function that someone else was writing. Rather than waiting I went ahead and
wrote the code as I knew it wouldn't take long. I then translated it into Lua
as I didn't know if the code I was waiting on would be in a component or a
script. Testing ended up being peer
programmed because of version control issues, but largely remained the same. I'm not required too but I'm doing to go beyond my task and try to make a ‘COIN’
object actually appear when an object is smashed rather than it just displaying
‘COIN’ to the screen. I have no idea how to create objects from the code alone
without using the engine but it seems like it would be something were going to
do a lot of and this feature would be needed anyway so it would save time if I
did it now.
Lua, from the little I’ve done, seems to be quite a nice
language. I was expecting to find the syntax difficult and to get confused
between languages as I am working with two. The version control however seems
unnecessarily complicated. I’ve never used any version control before so I am
unfamiliar with it. But setting it up was a real hassle and I still doing
really know how to use it. A lot of us are having problems using the interface.
No comments:
Post a Comment