Search found 24 matches

by keyspinner
Mon Sep 01, 2008 8:06 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Now I'm getting a runtime error
Stack traceback:
line 15 in main.lua for function in line 13
it tells me 'first' is a 'nil' value
by keyspinner
Mon Sep 01, 2008 7:53 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Oh, thanks I see what you did!
I'm so blind, I should have realized there should be only 1 draw function.
Thank you.
by keyspinner
Mon Sep 01, 2008 7:47 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Well I was mainly trying to do this to not confuse myself, because I do this all the time, for example in math class I write too much and can't find anything. I am going to need you fix my code so I can see how it's supposed to look, if you know how. Because I suck at understanding anything for some...
by keyspinner
Mon Sep 01, 2008 7:29 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

So I have to define message in main.lua? What is the point of making first.lua?
by keyspinner
Mon Sep 01, 2008 7:17 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Alright, Here is my current code (I changed 1.lua to first.lua) main.lua (This is the title screen) function load() font = love.graphics.newFont(love.default_font, 12) love.graphics.setFont(font) title = "lua demo" play = "press space to play" end function draw() love.graphics.dr...
by keyspinner
Mon Sep 01, 2008 7:09 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Well, shouldn't there be something like, a type of erase function?
That erases old ones and loads the new ones?
by keyspinner
Mon Sep 01, 2008 6:47 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

I think I got it, but I will have to do it later, I am in a noisy room and have a headache, thank you for helping me.
by keyspinner
Mon Sep 01, 2008 6:28 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Re: Can you make a game load another lua file

Sorry, I'm a bit new could you better explain that? I sort of understand but I'm a bit confused on why I put draw = function() I have been trying to use the love.filesystem.include but it tells me malformed number when I try to include 1.lua. (This is my first "level") Alright I re-read yo...
by keyspinner
Mon Sep 01, 2008 5:33 pm
Forum: Support and Development
Topic: Can you make a game load another lua file
Replies: 17
Views: 18717

Can you make a game load another lua file

I'm confused and need a little help,
how would you make a .lua just for the title screen, then say, press space and load a .lua, for say level 1.
Can you do that?
I hope you can because I will get awfully confused if you can't.
by keyspinner
Mon Sep 01, 2008 2:05 am
Forum: Games and Creations
Topic: Snake!
Replies: 9
Views: 11758

Re: Snake!

Great job!
I actually enjoyed it.
My score was 21 until I hit the wall.
A few things, the snake is a bit pixelated and should be a maybe higher-res and there should be a wrap-around option so instead of hitting the wall you keep going.
Good work though.