notle0n / cameracontrol Goto Github PK
View Code? Open in Web Editor NEWA Terraria mod to manipulate the camera.
Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=2831018225
A Terraria mod to manipulate the camera.
Home Page: https://steamcommunity.com/sharedfiles/filedetails/?id=2831018225
The game crashes when the tracker bounces while in a spline curve.
Logs:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at CameraControl.CameraSystem.ModifyScreenPosition() in CameraControl\CameraSystem.cs:line 61
at Terraria.ModLoader.SystemLoader.ModifyScreenPosition() in tModLoader\Terraria\ModLoader\SystemLoader.cs:line 118
at Terraria.Main.DoDraw_UpdateCameraPosition() in tModLoader\Terraria\Main.cs:line 49234
at Terraria.Main.DoDraw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 48269
A way to save to and load curve data from a file.
I could use json to store curves like this:
{
"curves": [
{
"c0": { "X": 33510, "Y": 1542 },
"c1": { "X": 33621, "Y": 1490 },
"c2": { "X": 33770, "Y": 1842 },
"c3": { "X": 33832, "Y": 1902 }
},
{
"c0": { "X": 34510, "Y": 1442 },
"c1": { "X": 34621, "Y": 1490 },
"c2": { "X": 34770, "Y": 1442 },
"c3": { "X": 34832, "Y": 1402 }
},
]
}
A button to lock the camera at a specific location. Press the same button again to unlock the camera.
One cause is CameraSystem.GetPositionAtPercentage()
Line 171
:
float t = (percentage * curveCount) % 1;
Reason:
1 % 1 == 0
They are currently broken because spline curves have 3x the amount of points per curve.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.