Posted on August 2nd, 2018
It's hard to believe that Google Summer of Code is almost over!
This week I focused mainly on getting the particle effects for when the player is holding the flag working across multiplayer, so that the host and any joined clients were in sync. One of the problems with the code is that the adding and removing of the particle effects happened in a lot of different places--when the player was attacked, when the player pressed `E` to pick up a flag, etc. I got rid of this redundancy by just hav...
Posted on July 19th, 2018
It's in the last couple of weeks for Google Summer of Code!
This week I worked on improvements for adding and removing particles, and character skinning for players.
For the particle system, I now handle cases where the player drops the flag through placing it into the world, by checking for it in the onInventorySlotChanged event:
// Checks if player puts down flagitem = event.getOldItem();if (itemIsFlag(item)) { removeParticleEmitterFromPlayer(player); player.removeComponent(HasFl...
Posted on July 18th, 2018
It's 9 weeks into Google Summer of Code and things are progressing!
This week I worked on some different additions to the Capture the Flag gameplay. First off, I fixed the problem I was having last week with held items not having the right components for checks--specifically, not being able to search for if a flag has a BlackFlagComponent, for instance, if I am trying to see if it is a black flag. I found out that adding@AddToBlockBasedItemto a given component would allow that component to b...
Posted on May 31st, 2018
It's week 2 of Google Summer of Code! This meant taking the next step in the project--working on implementing factions.
The idea of factions is simple--the player will choose a team to be on, red or black, and depending on their current faction they will be able to interact with the world in different ways. For instance, a player cannot pick up their team's flag when the flag is at the base.
To begin, I worked on tracking the player's own faction. Thankfully, some of the existing code in ...