70ed18202d
It'll give us the following features - Support for autorun in shoot-style maps - Pause menu in subgames - Chunk in shoot maps - Rings
12 lines
307 B
Lua
12 lines
307 B
Lua
local Parent = require "game.modules.world.actors.parent"
|
|
local Collectible = Parent:extend()
|
|
|
|
function Collectible:new(world, x, y, z, w, h, d)
|
|
Collectible.super.new(self, world, "collectible", x, y, z, w, h, d, false)
|
|
end
|
|
|
|
function Collectible:getPicked(player)
|
|
self:destroy()
|
|
end
|
|
|
|
return Collectible
|