Вот изменил надписи в главном меню:
32x32 Small Start New Game
64x64 Medium Load Game
96x64 Big Customise your hero
Exit
доп.
Psychodoc DirecT-proger
---
С позволения DirecT-proger'а буду делать доп. версии. Большинство на гл. меню, локализация на рус. яз и т. д.
То-есть если DirecT одобрит - будет Terraria portable [Test release] v2.1
Добавлено спустя 9 часов 9 минут:. /
./
/_ Кст, у меня там оговорка может быть 0.2.1
Добавлено спустя 11 минут 36 секунд:Изменения в variables.lua
--base
--font
verdana = pge.font.load("DATA/font/verdana.ttf", 14, PGE_RAM)
comic = pge.font.load("DATA/font/comic.ttf", 18, PGE_RAM)
ExitGame = false
alp = pge.gfx.createcolor(160, 222, 245, 255)
white = pge.gfx.createcolor(255, 255, 255)
--Map
noclip = false
s = 'g'
colls = {'a', 'w', 'O'}
collsU = {'a', 'w', 'O', 'P'}
--2 dirt
--4 plank
--5 glass
walls = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}
itemindex = 1
GameMap = {}
MapRender = {}
mapx = 32
mapy = 32
initgor = 14
chunckcountx = 4
chunckcounty = 4
mapcount = 0
--sprite
sprite = pge.texture.load("DATA/heros/hero_0.png", PGE_RAM)
xpos = 0
ypos = 0
walkspeed = 5.0
direction = 0
animframe = 0
d = 1
SPRITEDIM = 64
ANIMFRAMES = 6
animwait = 0.03
cANIMWAIT = 5
timer = pge.timer.create()
animcount = 0
walk = 0
herospeed = 5
--Gravity
gspeed = 0
flying = false
ginterval = 15
sv_gravity = 0
--Jump
jumping = false
--sound
volume = 32768
looping = false
--GUI
--Inventory
InvGUI = pge.texture.load("DATA/GUI/Inventory_Back.png")
alpha = 100
--Mouse
mouseposx = 100
mouseposy = 100
mousespeed = 2
mouse = pge.texture.load("DATA/GUI/mouse.png")
--terrain
--Tiles
dirt = pge.texture.load("DATA/Terrain/Tiles_0.png")
stone = pge.texture.load("DATA/Terrain/Tiles_1.png")
grass = pge.texture.load("DATA/Terrain/Tiles_2.png")
flora = pge.texture.load("DATA/Terrain/Tiles_4.png")
wood = pge.texture.load("DATA/Terrain/Tiles_5.png")
cdoor = pge.texture.load("DATA/Terrain/Tiles_10.png")
odoor = pge.texture.load("DATA/Terrain/Tiles_11.png")
platforma = pge.texture.load("DATA/Terrain/Tiles_19.png")
plank = pge.texture.load("DATA/Terrain/Tiles_30.png")
glass = pge.texture.load("DATA/Terrain/Tiles_54.png")
--wall
dirtwall = pge.texture.load("DATA/Terrain/Wall_2.png")
plankwall = pge.texture.load("DATA/Terrain/Wall_4.png")
glasswall = pge.texture.load("DATA/Terrain/Wall_21.png")
--branche = pge.texture.load("DATA/Terrain/Tree_Branches.png")
--Items
Pickaxe = pge.texture.load("DATA/items/Item_1.png")
Humer = pge.texture.load("DATA/items/Item_7.png")
--Sword = pge.texture.load("DATA/items/Item_6.png")
Idirt = pge.texture.load("DATA/items/Item_2.png")
Istone = pge.texture.load("DATA/items/Item_3.png")
Iwood = pge.texture.load("DATA/items/Item_9.png")
Idoor = pge.texture.load("DATA/items/Item_25.png")
Idirtwall = pge.texture.load("DATA/items/Item_30.png")
Iwoodwall = pge.texture.load("DATA/items/Item_93.png")
Iglasswall = pge.texture.load("DATA/items/Item_38.png")
Iplatform = pge.texture.load("DATA/items/Item_94.png")
Iglass = pge.texture.load("DATA/items/Item_170.png")
Изменения в gamemenu.lua
--Init
logo1 = pge.texture.load("DATA/GUI/Menu/logo1.png", PGE_RAM)
logo2 = pge.texture.load("DATA/GUI/Menu/logo2.png", PGE_RAM)
logo3 = pge.texture.load("DATA/GUI/Menu/logo3.png", PGE_RAM)
Dlogo = pge.texture.load("DATA/GUI/Menu/Dlogo.png", PGE_RAM)
white = pge.gfx.createcolor(255, 255, 255)
gray = pge.gfx.createcolor(150, 150, 150)
--Load Game
loadmenu = false
renderloadmenu = false
currentdir = "SAVES"
fileoffset = 0
filelimit = 5
function readdir(path)
pge.dir.chdir(path)
dir = pge.dir.open()
if dir then
dircontents = dir:read()
if not dircontents then
return nil
end
dir:close()
currentselection = 1
table.sort(dircontents, function(a,b) if a.dir == b.dir then return a.name:lower() fileoffset and indexlm =animspeed then
asc = 0
animframe = animframe + 1
if animframe >= ANIMFRAMES then
animframe = 1
end
end
v0 = animframe * SPRITEDIM
sprite:activate()
sprite:draw(208, 104, 64, 64, 0, v0, 64, 64)
comic:activate()
comic:printcenter(128, white, '');
end
--Draw mouse
if not option then
mouse:activate()
mouse:draweasy(mouseposx,mouseposy)
end
pge.gfx.enddrawing()
pge.gfx.swapbuffers()
--Angle
LogoAngle = LogoAngle + AngleSet
if LogoAngle > 0.2 then
AngleSet = -0.001
LogoAngle = 0.2
elseif LogoAngle 255 then
modifier = -1
alpha = 255
elseif alpha =180) and (mouseposx 142 then
subindex = 1
else
subindex = -1
end
if mouseposy >162 then
subindex = 2
end
if mouseposy >182 then
subindex = 3
end
if mouseposy >202 then
subindex = -1
end
else
subindex = -1
end
end
end
if (not option) and (not loadmenu) and (not newgame) then
if (mouseposx >=260) and (mouseposx 132 then
index = 1
else
index = -1
end
if mouseposy >152 then
index = 2
end
if mouseposy >172 then
index = 3
end
if mouseposy >192 then
index = 4
end
if mouseposy >212 then
index = -1
end
else
index = -1
end
end
if pge.controls.analogx() 0 then
mouseposx = mouseposx - mousespeed
else
mouseposx = 0
end
end
if pge.controls.analogx() > 64 then
if mouseposx 64 then
if mouseposy 3 then
hindex = 0
end
sprite = pge.texture.load("DATA/heros/hero_" .. hindex .. ".png", PGE_RAM)
end
if pge.controls.pressed(PGE_CTRL_LEFT) then
hindex = hindex - 1
if hindex 1 then
currentselection = currentselection - 1
if currentselection > filelimit - 2 then
fileoffset = fileoffset - 1
end
end
end
if pge.controls.pressed(PGE_CTRL_DOWN) and dircontents then
if currentselection = filelimit then
fileoffset = fileoffset + 1
end
end
end
end
end
logo1 = nil
logo2 = nil
logo3 = nil
Dlogo = nil
На этом пока что всё)) (Красным изменено!)
Добавлено спустя 3 минуты 32 секунды:В gamemenu система не разрешила(