mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
13 lines
225 B
Lua
13 lines
225 B
Lua
local class = require "Class"
|
|
|
|
local Car = class("Car")
|
|
|
|
function Car:__init(x, y)
|
|
self.x = x or 0
|
|
self.y = y or 0
|
|
end
|
|
|
|
function Car:print() -- this will be broken
|
|
print("I'm a car, at ("..self.x..","..self.y..")")
|
|
end
|