Thursday, August 7, 2014
Is this Door Open or Closed?
So one of the current issues is having the option for the player to create doors in the space station while simultaneously being able to open and close them. This allows for a lot of emergent gameplay and is the primary idea behind the game. Being creative with how the vacuum of space can destroy or save your space station is a lot of the fun. The primary issue is determining whether or not every door is open or closed and when the atmosphere within the station can be restored.
The current solution I've been working on actually uses wherever a breach has occurred and sets an invisible marker at that spot. Then whenever the player tries to stop the breach, either by closing doors or repairing the wall a calculation is done between any sealed-off area and the breach marker. I use a typical a*algorithm calculation to determine if a clear path exists. This is the same method I use to calculate the paths of units whenever you move one in the game as well. It's all highly experimental right now, and far from perfect, but I'm hoping it'll work well enough.
I've also toying with the refugees within the space station putting down their own beds.
Labels:
crowdfunding,
gamedev,
gamemaker,
gameprogramming,
indie,
indiedev,
indiegames,
Kickstarter,
Linux,
Mac,
management,
RTS,
sim,
simgame,
space,
spacestation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment