blob: 6ba1606c35a8228f61ee861da8551c6d0f04d735 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require "not.Sprite"
--- `Entity`
-- Basic, visible object to be used within World instance. Can be anything. Represented as `Sprite`.
-- We still need to keep old, global way of using modules but there are `returns` on the end at least.
Entity = Sprite:extends()
Entity.world =--[[not.World]]nil
-- Simple constructor for `Entity`.
function Entity:new (world, imagePath)
Entity.__super.new(self, imagePath)
self.world = world
end
return Entity
|