Skip to content

Commit

Permalink
Update external libs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinW1998 committed Aug 18, 2015
1 parent 12c8b39 commit 921c324
Show file tree
Hide file tree
Showing 32 changed files with 10,110 additions and 279 deletions.
2,318 changes: 2,318 additions & 0 deletions LuaScriptsLibExt/Readme_For_colliders.lua/example.lvl

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions LuaScriptsLibExt/Readme_For_colliders.lua/example/lunadll.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
colliders = loadSharedAPI("colliders");

local point = colliders.Point(-199824, -200208);
point:Debug(true);

local box = colliders.Box(-199740, -200224, 32, 32);
box:Debug(true);

local circle = colliders.Circle(-199624, -200208, 16);
circle:Debug(true);

local tri = colliders.Tri(-199524, -200208, {-16,16}, {0,-16}, {16, 16});
tri:Debug(true);

local poly = colliders.Poly(-199424, -200208, {-16,16}, {0,-16}, {16, 16}, {0,0});
poly:Debug(true);

function onLoop()
local s = {};

if colliders.collide(player, point) then
table.insert(s, "point");
end
if colliders.collide(player, box) then
table.insert(s, "box");
end
if colliders.collide(player, circle) then
table.insert(s, "circle");
end
if colliders.collide(player, tri) then
table.insert(s, "tri");
end
if colliders.collide(player, poly) then
table.insert(s, "poly");
end


local y = 0;
for _,v in ipairs(s) do
printText(v,0,y);
y = y + 20;
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_smb3overhaul = loadAPI("smb3overhaul");

function onLoad()
_smb3overhaul.setSecondsLeft(200);
_smb3overhaul.setTimerState(true);
end

Loading

0 comments on commit 921c324

Please sign in to comment.