Maidens of the Kaleidoscope

~Hakurei Shrine~ => Rika and Nitori's Garage Experiments => Topic started by: Andi on January 14, 2018, 10:15:42 PM

Title: Mind the Gap - A library for general-purpose Portal-style gaps (+example script)
Post by: Andi on January 14, 2018, 10:15:42 PM
For the last week or so I've been working on some functions for gaps that function much like Portal-style portals. Namely, shots go in one and out the other, preserving their speed, angle, position, etcetera relative to the gap. This is one of those things that can potentially save a lot of effort once you've got it working, but takes a lot of effort to get working - and now I have, in fact, got it working. So here it is.

Dropbox link because Bulletforge registration is closed (https://www.dropbox.com/s/5yfpwx4lyjtwlpp/Mind%20the%20Gap.zip?dl=0)

The attached script (5 spells, 4 nonspells) makes use of these gaps both as tools - actually gapping shots - and as props - creating shots on a gap without actually gapping them. The latter shouldn't be much more intensive than usual, since all the math is done by the ingaps (the outgaps just have to look pretty and tell the ingaps where they are), so they can be used for all purposes without needing a separate function for "fake" gaps.

Documentation for making use of the gaps is included in the library itself. The code isn't 100% cleaned up yet - there are still some things half-implemented (gapping straight lasers), or hooks without functions to set them (which nonetheless work if you set the relevant dictionary values manually) - but it's functional, and hopefully fairly straightforward to use. I'll update this

Current features include:

Planned features include:

Credits: I originally used the mock gaps from Celestial Showdown to render them, although over time I ended up replacing most of the original code (the original used Yangle to close them, which didn't really work when they were rotated). I think TalosMistake did those? Same with the trains, I started with the ones from Celestial Showdown and heavily modified them, especially the hitbox code. I think that's about- huh? There's more? Well, various assets were grabbed from all over the place, but that's - wait, me? Oh, yeah, I guess I should be credited for this. Then, uh, leave in the part where it says "by Andi" if you use them.
Title: Re: Mind the Gap - A library for general-purpose Portal-style gaps (+example script)
Post by: Andi on January 14, 2018, 10:16:09 PM
Reserved since that seems to be a thing people do on threads like this