Search found 94 matches

by SneakySnake
Sun Mar 30, 2014 4:19 pm
Forum: Games and Creations
Topic: Space Shoot Up - My First Game!
Replies: 12
Views: 7126

Re: Space Shoot Up - My First Game!

ZoNe wrote:okay thanks :)

Here is a working version.. i hope :/
Nope, it doesn't work if scores.lua doesn't exist.

You only seemed to have incorporated Jimanzium's changes, which still break on the first run.

Why didn't you incorporate my changes instead? I shared them with you for a reason.
by SneakySnake
Sun Mar 30, 2014 2:48 pm
Forum: Games and Creations
Topic: Space Shoot Up - My First Game!
Replies: 12
Views: 7126

Re: Space Shoot Up - My First Game!

and then fixed another problem by changing line 43 of main.lua with "love.filesystem.write("scores.lua","0")" instead of "scores = love.filesystem.newFile("scores.lua")" not sure what the problem was here as seemed to work for me also?? :/ should i ...
by SneakySnake
Sun Mar 30, 2014 1:22 pm
Forum: Games and Creations
Topic: Space Shoot Up - My First Game!
Replies: 12
Views: 7126

Re: Space Shoot Up - My First Game!

Renamed the "Images" folder "images" Good job! and then fixed another problem by changing line 43 of main.lua with "love.filesystem.write("scores.lua","0")" instead of "scores = love.filesystem.newFile("scores.lua")" Why was this...
by SneakySnake
Sun Mar 30, 2014 7:41 am
Forum: Support and Development
Topic: Variable goes from table to nil
Replies: 2
Views: 1158

Re: Variable goes from table to nil

Is self.color a table or nil? If it's nil, then why? both() is called multiple times. The first time it's called, self.color is a table. The nth time it's called, self.color is nil. Why? You set self.color = owner.color in Troop:initialize. The nth time, you call it with owner = `Carl` It seems tha...
by SneakySnake
Fri Mar 28, 2014 11:29 am
Forum: Support and Development
Topic: sprite lag
Replies: 2
Views: 1148

Re: sprite lag

What do you mean by "it lags"? Is the framerate low?
I get good FPS and low CPU usage, and I have a fairly old computer with a cheap video card.

In fact, I don't see anything resembling lagging.
Try printing the FPS with love.graphics.print(love.timer.getFPS()), and see what value you get.
by SneakySnake
Fri Mar 28, 2014 1:27 am
Forum: Support and Development
Topic: Standard Lua with love2D?
Replies: 13
Views: 4479

Re: Standard Lua with love2D?

function love.conf(t) t.window = nil end So, if I just put this at the beginning of my code, it'll stop the main window from running? You have to put this code in a file called conf.lua . Does that mean I'd have to open up a debug window as well? I'm not sure what you mean by that. And is there, by...
by SneakySnake
Thu Mar 27, 2014 10:57 pm
Forum: Support and Development
Topic: Love2D crashes when playing audio
Replies: 7
Views: 4609

Re: Love2D crashes when playing audio

Autophoenix wrote:No error messages, the program just freezes. It's terrible and givin' me headaches. :x
That is a known issue that was fixed in LÖVE 0.9.
The fix won't be backported into 0.8. Use 0.9.
by SneakySnake
Thu Mar 27, 2014 9:04 pm
Forum: Support and Development
Topic: Standard Lua with love2D?
Replies: 13
Views: 4479

Re: Standard Lua with love2D?

Since LÖVE 0.9.0, you can set t.window to nil in love.conf(t) to prevent LÖVE from creating a window. conf.lua function love.conf(t) t.window = nil end Since you probably don't want to use the game loop LÖVE provides, override love.run() , and place your game there. main.lua function love.run() love...
by SneakySnake
Sat Mar 22, 2014 1:07 pm
Forum: Support and Development
Topic: Can't load map
Replies: 4
Views: 1146

Re: Can't load map

As I said in the above post, use love.filesystem for filesystem access when working with LÖVE. Lua's io library can't read from a .love archive. (And there might be other problems I'm not aware of) Here is loadMap() modified to use love.filesystem: function loadMap() local file = love.filesystem.new...
by SneakySnake
Sat Mar 22, 2014 10:59 am
Forum: Support and Development
Topic: Can't load map
Replies: 4
Views: 1146

Re: Can't load map

Please attach a .love file of your project.
Also, you should use love.filesystem instead of Lua's io library, unless you have a specific reason not to (e.g. you want to write outside of the game's save directory).