v1.0.1 - Fixed a bug with the raster library.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local loadfile = ...
|
local loadfile = ...
|
||||||
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
|
||||||
|
|
||||||
_G._OSVERSION = "Halyde 1.0.0"
|
_G._OSVERSION = "Halyde 1.0.1"
|
||||||
|
|
||||||
function _G.import(module, ...)
|
function _G.import(module, ...)
|
||||||
local args = table.pack(...)
|
local args = table.pack(...)
|
||||||
|
|||||||
@@ -142,10 +142,10 @@ function raster.update()
|
|||||||
raster.get(x,y),
|
raster.get(x,y),
|
||||||
raster.get(x,y+1),
|
raster.get(x,y+1),
|
||||||
raster.get(x,y+2),
|
raster.get(x,y+2),
|
||||||
raster.get(x,y+3),
|
|
||||||
raster.get(x+1,y),
|
raster.get(x+1,y),
|
||||||
raster.get(x+1,y+1),
|
raster.get(x+1,y+1),
|
||||||
raster.get(x+1,y+2),
|
raster.get(x+1,y+2),
|
||||||
|
raster.get(x,y+3),
|
||||||
raster.get(x+1,y+3)
|
raster.get(x+1,y+3)
|
||||||
}
|
}
|
||||||
local colorA = nil
|
local colorA = nil
|
||||||
@@ -318,7 +318,6 @@ function raster.drawEllipse(x1, y1, x2, y2, color)
|
|||||||
raster.set(xc + x, yc + y, color)
|
raster.set(xc + x, yc + y, color)
|
||||||
raster.set(xc - x, yc + y, color)
|
raster.set(xc - x, yc + y, color)
|
||||||
raster.set(xc + x, yc - y, color)
|
raster.set(xc + x, yc - y, color)
|
||||||
raster.set(xc - x, yc - y, color)
|
|
||||||
|
|
||||||
if d1 < 0 then
|
if d1 < 0 then
|
||||||
x = x + 1
|
x = x + 1
|
||||||
|
|||||||
Reference in New Issue
Block a user