-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Deathly edited this page Jun 16, 2011
·
2 revisions
Welcome to the terra Wiki
- a Terraria Mod
- a Terraria Modding Interface for developers
- a Terraria Enhancer
- terra.cs MainClass with Hooks, Mod Management and Functions
- terraMod.cs ModClass which will store Mod information & functions
- Direct Access to Chat, Character etc.
- Acess to several Hooks (e.g. Chat, Keys, Death, Damage, etc.)
- Acess to several Functions (see Core Features, Draw to Screen (fully-managed), etc.)
- Every function will go in the MainClass
public static void noclipFunction() { noclip = !noclip; }
- Create a new Mod using one line of code`
terraMod noclip = new terraMod(Keys.N, "noclipFunction");
- Hooks (currently) work like following code (Add code to exisiting functions in MainClass)
if (noClip)
{
int speed = 5;
if (keyBuffer.Contains(Keys.LeftShift)) speed *= 3;
if (keybuffer.Contains(Keys.W)) Main.player[Main.myPlayer].position.Y -= speed;
if (keybuffer.Contains(Keys.S)) Main.player[Main.myPlayer].position.Y += speed;
if (keybuffer.Contains(Keys.D)) Main.player[Main.myPlayer].position.X += speed;
if (keybuffer.Contains(Keys.A)) Main.player[Main.myPlayer].position.X -= speed;
}
- More Features coming / already done
Best Regards xtravagant aka Deathly