Voxel Turf is a block based city builder/action adventure game. Build cities or destroy them. Start businesses or rob them. Nurture your citizens or subjugate them. Build a real estate empire, or perhaps just drive around and blow stuff up. Its your choice! Voxel Turf allows you to be the force of benevolence or the agent of chaos in a city of your creation.
You can explore, expand, modify and destroy every block of every building. The best part is that you can do it all with your friends in a multiplayer game!
Automatic doors? Combination locks? Timed explosions? These are all achievable using electronics and mechanisms!
This Dev Diary goes through the mechanisms in the game, and the electronic circuit blocks that can be used to control them.
The Voxel Turf electronic system allows you to link some blocks to each other with cables. For instance you can connect a door to a lever to control it. For all mechanisms the blue square is the input and the red circle is the output. Simply use a cable to link one input to one output to connect them!
So how does it work? To begin, electronic devices can have two states: Low (or Off), or High (or On).
If you wish to connect one output to multiple inputs you'll have to use Splitters. Finally, to hide the clutter cables and ports are only visible if you have a mechanism or cable selected.
Explosive Crates can be hooked up to a detonator and a pressure sensor to create powerful land mines!
Doors can be wired to each other to make them open and close as a group
In this section we'll find out how the integrated circuit blocks work.
DELAY BUFFER – Delays a signal by 1 tick (half a second).
NOT – Inverts a signal – On becomes off and off becomes on.
FREQUENCY HALVER – Flips state every second pulse. Use this to convert buttons into switches.
EDGE DETECTOR – Acts like a Frequency Doubler, it flips state every edge (every transition from high to low or low to high). Use this to make a switch behave like a button.
AND – Output is high if both inputs are high.
OR – Output is high it at least 1 input is high.
XOR – Output is high if 1 input is high and one input is low. This is good for implementing a light controlled by two switches.
Logic gates also come in inverted states:
NAND – Works like an AND gate with inverted output. Output is low if both inputs are high, high otherwise.
NOR – Output is low if either input is high.
XOR – Output is high if either both inputs are high or both inputs are low.
RS Latch – Has two inputs (S = Set and R = Reset) and two outputs (Q and NOT Q). If S receives a high pulse then Q is set to high. and remains high until R is pulsed. This is useful for setting and reading a state of something. For example you have an area with an entrance and an exit, and you want to know if a player is in the area. You can have a pressure sensor at the entrance wired to S, and sensor at the exit wired to R. If Q is high then the player is in the area.
These are more complex, but extremely powerful integrated circuits.
JK Flip Flop - Works like an RS latch (J=S and R=K), but only updates when a pulse is sent to the clock input (>). If both J and K are high when a pulse is received, the output is toggled.
This is a 8 bit binary counter. You can use this for timing or counting things. It has two modes of operation:
1. No Clock (Timer Mode)
Do not connect anything to the clock input for this mode. This has 2 remaining inputs: I = Integrate, R = Reset. If I is high then the output increment once per tick (once ever half second). If R is high then the output resets to zero.
2. Clock Wired (Counter Mode)
When a pulse is detected on the clock input the device updates. If I is high then the count increments. If R is high the count resets.
SIPO Shift Register - SIPO means Serial Input, Parallel Output. When a clock pulse is received the state of D is written to output 1, the state of output 1 is written to output 2, 2 to 3, etc, and the state of output 8 is discarded. If R is high, the output is reset to zero.
You can use this to store numbers, such as the number of times a player has walked over a pressure sensor
PISO Shift Register - PISO means Parallel Input, Serial Output. The state of D is initially set to be whatever input 1 is. When a clock pulse is received D changes to input 2. Another clock pulse will set it to input 3, etc. After input 8 it jumps back to input 1.
4 Bit Full Adder With Carry - For a description on how a full adder works check out the wikipedia page. In a nutshell this is used to add two 4-bit binary numbers. To extend this to 8 bits, 12 bits, etc, you can tie the carry out and carry in bits between Full Adders.
That's it for this week! For updates, please Watch Us on IndieDb, or follow us on Steam or Facebook!
What is the point of a block game if you can't destroy everything around you? This Dev Diary is covers Rocket Launchers (yes multiple types), Grenades...
Weapons are important to keeping you and your civilians safe and besides, who doesn't like a good firefight? A keen knowledge of weapons can give you...
What influences the value of property? How do you protect your creations from griefers? Can you make and populate your own buildings in-game? This is...
How does the economics of city building work in Voxel Turf? This is Part 1 of our series looking into the intricacies and game mechanics.
No articles were found matching the criteria specified. We suggest you try the article list with no filter applied, to browse all available. Post article and help us achieve our mission of showcasing the best content from all developers. Join now to share your own content, we welcome creators and consumers alike and look forward to your comments.