Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.27 KB

File metadata and controls

59 lines (35 loc) · 2.27 KB

SwitchBlocks - A Jump King Mod

This mod adds custom blocks to Jump King, each with its own unique switching-its-state themed mechanic.

  • Texture of the levers and platforms
  • Sounds played when a lever is touched
  • When applicable the duration of timed gimmick

Logic

The general logic is that a block is solid when it matches the current state, as such an OFF block will be solid/function when the state currently is OFF as well.

Auto Blocks

Automatically switches state after a set amount of time.

Basic Blocks

Is solid if the kind of platform is equal to the state of the lever. Switches its state when touching a lever.

Countdown Blocks

Switches its state when touching a lever, automatically switches back after a set amount of time.

Group Blocks

Switches once a player has left the platform or if a duration is specified after that duration starting from the moment a player has touched the platform, consists of 4 colours which if next to eachother on the hitbox file group together as long as they are of the same colour.

Jump Blocks

Switches its state when the player jumps.

Sand Blocks

Behaves like the vanilla sand block sinking the player and slowing them down. When state has been switched, it instead pushes the player up. Switches its state when touching a lever.

Sequence Blocks

Switches the next platform on, and the previous platform off once a player touches the platform, consists of 4 colours which if next to eachother on the hitbox file group together as long as they are of the same colour.

Find the mod and an example map on steam here

Mod Map

I have an idea for a block, can I ask for it to be added?

Sure, make an issue and I'll have a look at it.

I apologize for the complete and utter mess that is using LINQ for XML handling

I would really like for it to use a cleaner method of reading and writing XML, but when I check its performance against something like the XmlSerializer it is A LOT faster. And yes, I am caching the XmlSerializer, and not only that, I create the serializer even before I even measure the time it takes to read the XML file. So it gets all the benefit I can muster to give it.