add CC on android (and Linux btw)
This commit is contained in:
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,49 do L[i]=true end
|
local L={}for i=1,49 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 2
|
local t=CCloader_filename[system] and 0 or 2
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,49)
|
local r=rnd(2,49)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,49 do L[i]=true end
|
local L={}for i=1,49 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 4
|
local t=CCloader_filename[system] and 0 or 4
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,49)
|
local r=rnd(2,49)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,49 do L[i]=true end
|
local L={}for i=1,49 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 6
|
local t=CCloader_filename[system] and 0 or 6
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,49)
|
local r=rnd(2,49)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,100 do L[i]=true end
|
local L={}for i=1,100 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 4
|
local t=CCloader_filename[system] and 0 or 4
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,99)
|
local r=rnd(2,99)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,100 do L[i]=true end
|
local L={}for i=1,100 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 4
|
local t=CCloader_filename[system] and 0 or 4
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,99)
|
local r=rnd(2,99)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ return{
|
|||||||
}
|
}
|
||||||
PLY.newPlayer(1,340,15)
|
PLY.newPlayer(1,340,15)
|
||||||
local L={}for i=1,100 do L[i]=true end
|
local L={}for i=1,100 do L[i]=true end
|
||||||
local t=system~="Windows"and 0 or 4
|
local t=CCloader_filename[system] and 0 or 4
|
||||||
while t>0 do
|
while t>0 do
|
||||||
local r=rnd(2,99)
|
local r=rnd(2,99)
|
||||||
if L[r]then L[r],t=false,t-1 end
|
if L[r]then L[r],t=false,t-1 end
|
||||||
|
|||||||
18
parts/ai.lua
18
parts/ai.lua
@@ -19,8 +19,22 @@ local blockPos={4,4,4,4,4,5,4}
|
|||||||
local scs={{1,2},{1,2},{1,2},{1,2},{1,2},{1.5,1.5},{0.5,2.5}}
|
local scs={{1,2},{1,2},{1,2},{1,2},{1,2},{1.5,1.5},{0.5,2.5}}
|
||||||
-------------------------------------------------Cold clear
|
-------------------------------------------------Cold clear
|
||||||
local CCblockID={6,5,4,3,2,1,0}
|
local CCblockID={6,5,4,3,2,1,0}
|
||||||
if system=="Windows"then
|
CCloader_filename = {}
|
||||||
require("CCloader")
|
CCloader_filename.Windows = 'CCloader.dll'
|
||||||
|
CCloader_filename.Android = 'CCloader.so'
|
||||||
|
CCloader_filename.Linux = 'CCloader.so'
|
||||||
|
if CCloader_filename[system] then
|
||||||
|
if system == 'Windows' then
|
||||||
|
local prefixed_CCloader_filename = '\\'..CCloader_filename[system]
|
||||||
|
elseif system == 'Android' or system == 'Linux' then
|
||||||
|
local prefixed_CCloader_filename = '/'..CCloader_filename[system]
|
||||||
|
end
|
||||||
|
local CCloader_f, size = love.filesystem.read('data', CCloader_filename[system])
|
||||||
|
assert(CCloader_f, size)
|
||||||
|
local success, message = love.filesystem.write(CCloader_filename[system], CCloader_f, size)
|
||||||
|
assert(success, message)
|
||||||
|
local f = assert(package.loadlib(love.filesystem.getSaveDirectory()..prefixed_CCloader_filename, "luaopen_CCloader"))
|
||||||
|
f()
|
||||||
BOT={
|
BOT={
|
||||||
getConf= cc.get_default_config ,--()options,weights
|
getConf= cc.get_default_config ,--()options,weights
|
||||||
--setConf= cc.set_options ,--(options,hold,20g,bag7)
|
--setConf= cc.set_options ,--(options,hold,20g,bag7)
|
||||||
|
|||||||
Reference in New Issue
Block a user