diff options
Diffstat (limited to 'src/objs/specks.lua')
| -rw-r--r-- | src/objs/specks.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/objs/specks.lua b/src/objs/specks.lua index a3a21c5..a01e233 100644 --- a/src/objs/specks.lua +++ b/src/objs/specks.lua @@ -24,6 +24,9 @@ function Speck_Sys.new(texture) self.scale_end_max = 1 self.texture = texture + + self.x = 0 + self.y = 0 end function Speck_Sys:process(dt) @@ -57,3 +60,8 @@ function Speck_Sys:draw() ) end end + +register_comp("Specks", function (ent) + ent.specks = Speck_Sys.new("res/img/speck.png") + +end) |
