-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12c8b39
commit 921c324
Showing
32 changed files
with
10,110 additions
and
279 deletions.
There are no files selected for viewing
2,318 changes: 2,318 additions & 0 deletions
2,318
LuaScriptsLibExt/Readme_For_colliders.lua/example.lvl
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
LuaScriptsLibExt/Readme_For_colliders.lua/example/lunadll.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
7 changes: 7 additions & 0 deletions
7
LuaScriptsLibExt/Readme_For_smb3overhaul.lua/EXAMPLE LEVEL/lunaworld.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.