Skip to content

Commit

Permalink
add example scripts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Feb 11, 2021
1 parent bf988e7 commit 8797518
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
move build\bin\Release\injected.dll Overlunky\injected.dll
move build\bin\Release\injector.exe Overlunky\Overlunky.exe
move README.md Overlunky\README.txt
move examples Overlunky\Scripts
7z a Overlunky_${{ steps.get_version.outputs.VERSION }}.zip Overlunky\Overlunky.exe Overlunky\injected.dll Overlunky\README.txt
- name: Upload artifacts
Expand Down
2 changes: 1 addition & 1 deletion examples/callbacks.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
meta.name = 'Callback test'
meta.version = '1.2.3'
meta.version = 'WIP'
meta.description = 'Tests callbacks.'
meta.author = 'Dregu'

Expand Down
5 changes: 5 additions & 0 deletions examples/drawing.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
meta.name = "Drawing example"
meta.version = "WIP"
meta.description = "Draws some shapes and text."
meta.author = "Dregu"

-- r/uselessredcircle
set_callback(function()
if #players < 1 then return end
Expand Down
6 changes: 0 additions & 6 deletions examples/jelly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,3 @@ set_callback(function()
x, y, layer = get_position(players[1].uid)
spawn_entity(ENT_TYPE.MONS_MEGAJELLYFISH, x, y+3, layer, 0, 0)
end, ON.LEVEL)

set_callback(function()
set_global_interval(function()
message("Watch out for the jellyfish!")
end, 600)
end, ON.START)
5 changes: 5 additions & 0 deletions examples/talking_pets.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
meta.name = "Talking pets example"
meta.version = "WIP"
meta.description = "Gives pets some oneliners with say()"
meta.author = "Dregu"

set_callback(function()
pet_interval = set_interval(function()
if #players == 0 then return end
Expand Down

0 comments on commit 8797518

Please sign in to comment.