Warp
Game Introduction
Ever wanted to see what a purely two dimensional space time gravitational warping pseudo-representation, well here you go... it is here... enjoy! I actually wrote this in java while messing around with some ideas on warping of a 2 dimensional surface, and I found some really neat stuff while doing this. So actually I found a really cool way to warp the particles using distance but never actually doing any sort of sqrt calculation (which is computational intensive). Basically we want the warping to be proportional to the distance squared, which we can get by a vector of V = P-C (P being the position in two dimensional space, and C be the center of the warp) and take the square of this. Now if we just divided by the distance squared we actually get that other "gravitational" project I made a while back (Kinda). So I need the warping to only create a pull if it is very close, otherwise, no need, so it needs to be a scale of [0,1]. We need a curve like sigmoid, but sigmoid is computationally expensive, so what is a good replacement? Well I found just the thing while perusing stack overflow. s(x) = x / (1 + |x|) (we actually don't need to do abs in this, because later we used the distance square which is always positive) So basically given m = |V|^2 (which is only V*V) we have scale = s(m)*CONSTANT_WARP, which we then multiply our distance vector, add back to the gravitational anomaly's center, and presto, we have this!!!!!!! Then of course I added some coloring to show the "hotspot" and I made a grid from it.
How To Play
So just move your mouse around and enjoy the beautiful rainbow warping Press space to open up the WARP variable which controls the intensity of the warping Use turbo warp to get some really smooth graphics https://turbowarp.org/#427331126 So I know I have been radio silent for a while, I am quite busy, I am turning 18 on Tuesday, school (specifically the IB program) is extremely intense on me this year, and I am applying for college (fingers crossed) and I have work most weekends now, so yeah. However, when I do get time, I hope to be able to create something that you all can appreciate, something that is beautfiul and care put into, because that is what you all deserve! Plus WOW over 100 followers, thanks ya'll! I never in my wildest dreams imagined I would get this sort of popularity, and what is more fitting to my first project back to be rainbow themed and generally satisfying, because my most popular project is actually one of my simplest, the rainbow vector field :3 So thank you all, I love you all, and please, enjoy :)
Author
KrystalDestroyer
Category
Game Information
Game Popularity
1.1k views
Collection Count
101 favorites





