48 lines
720 B
Plaintext
48 lines
720 B
Plaintext
URL: https://wiki.studiominus.nl/snippets.html
|
|
Title: People Playground Modding - Code snippets
|
|
==================================================
|
|
|
|
Code snippets
|
|
These articles explain and show snippets of code that may be useful to you. Alternatively, you can view the repository directly.
|
|
|
|
Cartridges
|
|
|
|
Materials
|
|
|
|
Particle effects
|
|
|
|
Physical properties
|
|
|
|
Spawnable items
|
|
|
|
Activation action
|
|
|
|
Random sprite assignment
|
|
|
|
Creating a background script
|
|
|
|
Change environment settings
|
|
|
|
Create an explosion
|
|
|
|
Creating a light
|
|
|
|
Custom human sprite
|
|
|
|
Debug drawing
|
|
|
|
Editing pre-existing items
|
|
|
|
Empty entry point
|
|
|
|
Listen for events
|
|
|
|
Map IDs
|
|
|
|
Registering an item
|
|
|
|
Adding a firearm
|
|
|
|
Spawn particles on activation
|
|
|
|
Basic texture pack system |