|
@@ -1,6 +1,10 @@ |
|
|
--CALLING OTHER LUA FILES |
|
|
--CALLING OTHER LUA FILES |
|
|
|
|
|
|
|
|
|
|
|
love.filesystem.setIdentity( "pong" ) |
|
|
|
|
|
love.filesystem.createDirectory( "a" ) |
|
|
require "src/dependencies" |
|
|
require "src/dependencies" |
|
|
io.stdout:setvbuf("no") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--CANCELLED ATTEMPETED SHADING (NOT WORKING) |
|
|
--CANCELLED ATTEMPETED SHADING (NOT WORKING) |
|
|
local shader_code = |
|
|
local shader_code = |
|
|
[[ |
|
|
[[ |
|
@@ -200,8 +204,8 @@ function controlChanger() |
|
|
end |
|
|
end |
|
|
function love.load() |
|
|
function love.load() |
|
|
walls = {} |
|
|
walls = {} |
|
|
print(love.filesystem.createDirectory( "pong" )) |
|
|
|
|
|
love.filesystem.setIdentity( "pong" ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print (love.filesystem.getSaveDirectory()) |
|
|
print (love.filesystem.getSaveDirectory()) |
|
|
print (love.filesystem.getIdentity( )) |
|
|
print (love.filesystem.getIdentity( )) |
|
|
love.graphics.setDefaultFilter('nearest', 'nearest') |
|
|
love.graphics.setDefaultFilter('nearest', 'nearest') |
|
@@ -216,9 +220,9 @@ function love.load() |
|
|
--print("Debug active") |
|
|
--print("Debug active") |
|
|
--load |
|
|
--load |
|
|
|
|
|
|
|
|
testwalls = love.filesystem.load("save.lua")() |
|
|
|
|
|
|
|
|
testwalls = love.filesystem.load("save") |
|
|
if testwalls ~= nil then |
|
|
if testwalls ~= nil then |
|
|
walls = love.filesystem.load("save.lua")() |
|
|
|
|
|
|
|
|
walls = love.filesystem.load("save") |
|
|
print("Save file found") |
|
|
print("Save file found") |
|
|
else |
|
|
else |
|
|
print("No save file found!") |
|
|
print("No save file found!") |
|
|