Custom Stages #29
-
How do you make a custom stage in denpa? What files and locations are needed to create a custom stage in the Mods folder? I'm fairly new to this and I have been trying to figure this out for like 3 hours |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I’ll come back to this after I’m home this week |
Beta Was this translation helpful? Give feedback.
-
Creating a stage regularly in Denpa Engine mostly requires the json, however you can use a Lua or Hscript file for effects such as the glitch shader. For a good template, I'd recommend using the stage, well, stage. Put a copy of it into the data/stages folder in mods or wherever you're putting it. I'm using an example stage using the original stage json file, but it should look somewhat similar to this (in terms of settings): Most of these should be common sense to understand how they work, although the directory value works a bit weird. As an example, if you set the directory value to 'week5', it will look for files in the assets/week5 folder. Now, this is where the layers and sprites come in: (The example stage is just the floor from the original stage json, but it should still work with multiple layers. Just add a comma after each table the layer is in.) Like with the above settings, it should be common sense to understand how the layers work. The layer/sprite that is all the way in the back should be at the top with a layer_pos value of 1, and the one that's at the very front should be at the very bottom with a layer_pos value of how many total layers there are. The tag value is the name for the layer itself. This really is the basic structure of stage jsons, there is possibly more but that's what you should mostly know. |
Beta Was this translation helpful? Give feedback.
Creating a stage regularly in Denpa Engine mostly requires the json, however you can use a Lua or Hscript file for effects such as the glitch shader.
For a good template, I'd recommend using the stage, well, stage. Put a copy of it into the data/stages folder in mods or wherever you're putting it. I'm using an example stage using the original stage json file, but it should look somewhat similar to this (in terms of settings):
Most of these should be common sense to understand how they work, although the directory value works a bit weird. As an example, if you set the directory value to 'week5', it will look for files in the assets/week5 folder.
Now, this is where the layers and sprites c…