NyakoFoxandDav999 7d163c0f93 Add edentity blocks & associated script commands
This PR is a redo of #909 which improves the edentity handling,
abstracting activity zone types to level data rather than being a part
of entity data. This commit allows users to place down the game's
"blocks" in the editor, being collision blocks, hurt boxes, gamestate
triggers, script boxes, activity zones, "safe" boxes, and one-ways.

Activity zones now have some level XML to allow defining new activity
zone IDs:
```xml
<ActivityZones>
    <activityZone id="36" colour="red"></activityZone>
    <activityZone id="37" colour="orange">Press {button} to do something</activityZone>
</ActivityZones>
```

These add IDs 36 and 37 (with 0-35 replacing the built-in ones), for
use with custom spawned or placed activity zones. If the text is empty,
it will use the built-in localization string "Press {button} to
interact", and if "colour" is missing, it will default to "orange".

New commands:

- `createcollision(x,y,w,h)` - Creates a collision block
- `createtrigger(x,y,w,h,gamestate)` - Creates a gamestate trigger
- `createscript(x,y,w,h,script)` - Creates a (custom!) script box
- `createdamage(x,y,w,h)` - Creates a damage block
- `createdirectional(x,y,w,h,dir)` - Creates a "directional" block
- `createsafe(x,y,w,h)` - Creates a "safe" block
- `createactivity(x,y,w,h,script[,id])` - Creates an activity zone

If `id` is not passed into `createactivity`, it will default to 35.

Custom activity zones created this way can also be affected by
`setactivitytext`, `setactivitycolour` and `setactivityposition`.

Co-authored-by: Dav999 <dav999.tolp@gmail.com>
2026-11-13 15:58:50 -05:00
2026-10-15 07:55:18 -04:00
2024-01-02 22:27:05 +01:00
2024-01-02 22:27:05 +01:00
2024-01-08 19:17:44 -08:00
2024-01-02 22:27:05 +01:00
2024-01-02 22:27:05 +01:00
2025-05-06 22:06:48 -04:00

logo

This is the source code to VVVVVV, the 2010 indie game by Terry Cavanagh, with music by Magnus Pålsson. You can read the announcement of the source code release on Terry's blog!

The source code for the desktop version is in this folder.

VVVVVV is still commercially available at thelettervsixtim.es if you'd like to support it, but you are completely free to compile the game for your own personal use. If you're interested in distributing a compiled version of the game, see LICENSE.md for more information.

Discussion about VVVVVV updates mainly happens on the "unofficial" VVVVVV discord, in the vvvvvv-code channel.

Credits

S
Description
The source code to VVVVVV! http://thelettervsixtim.es/
Readme
28 MiB
0 Stars 1 Watchers 0 Forks
Languages
ActionScript 54.2%
C++ 44.5%
C 0.7%
Java 0.4%
CMake 0.2%