Search found 191 matches

by nice
Fri Dec 13, 2013 5:52 pm
Forum: Games and Creations
Topic: SpaceVoider
Replies: 4
Views: 2644

SpaceVoider

I'm originally a designer from the beginning so programing hasn't been a cakewalk for me, so for a little more than a month I have been working on my game called "Space Voider" and I feel that's it's finally time for the public to test my game! You're a ship stuck in an asteroid field and ...
by nice
Fri Dec 13, 2013 4:28 pm
Forum: Support and Development
Topic: Problems unpacking my game
Replies: 14
Views: 7882

Re: Problems unpacking my game

As I asked before, does it work with other love files you download? I am wondering if the OS (OsX?) doesn't have the extension registered to open them with love2d. Update: I have just tried to download a random project and it worked just fine but then I returned to my project, I just got the pig. I...
by nice
Fri Dec 13, 2013 4:23 pm
Forum: Support and Development
Topic: Problems unpacking my game
Replies: 14
Views: 7882

Re: Problems unpacking my game

As I asked before, does it work with other love files you download? I am wondering if the OS (OsX?) doesn't have the extension registered to open them with love2d. I haven't actually tried that yet What is your OS? If Linux, what distro? How did you install LÖVE? Edit: pretty game :nyu: I'm using m...
by nice
Fri Dec 13, 2013 4:02 am
Forum: Support and Development
Topic: Problems unpacking my game
Replies: 14
Views: 7882

Re: Problems unpacking my game

This is my first Löve file that I'm packaging, my first official Löve game, I had to go through a long and probably unnecessary process by going in the Terminal and tell it to unpack it with commands/code (ex. /applications/Löve.. etc) which is supposed not to happen. The only thing that's supposed ...
by nice
Thu Dec 12, 2013 10:37 pm
Forum: Support and Development
Topic: Problems unpacking my game
Replies: 14
Views: 7882

Problems unpacking my game

Hey guys! So I have finished my first game in love and I'm going to distribute for feedback but I have run into some problems. For some reason game (the love file is called spacevoider.love) dosen't unpack it self or run when you double click it but it does run when you run it through the terminal. ...
by nice
Thu Sep 26, 2013 5:22 pm
Forum: General
Topic: Make an object appear on the other side of the screen
Replies: 4
Views: 2832

Re: Make an object appear on the other side of the screen

If I understand correctly you want that an object, that exits the screen on the right, reenters on the left? The you are right: if x > screenWidth then x = x - screenWidth end if x < 0 then x = x + screenWidth end If you use the LÖVE default screen Width, then it is 800. Solved it! The only mistake...
by nice
Thu Sep 26, 2013 3:56 pm
Forum: General
Topic: Make an object appear on the other side of the screen
Replies: 4
Views: 2832

Re: Make an object appear on the other side of the screen

If I understand correctly you want that an object, that exits the screen on the right, reenters on the left? The you are right: if x > screenWidth then x = x - screenWidth end if x < 0 then x = x + screenWidth end If you use the LÖVE default screen Width, then it is 800. Just to be sure: do I creat...
by nice
Thu Sep 26, 2013 3:26 pm
Forum: General
Topic: Make an object appear on the other side of the screen
Replies: 4
Views: 2832

Make an object appear on the other side of the screen

As the subject says, I have an object that I want to appear on the other side of the screen and I have done this before but I need to have my memory refreshed. And if I remember correctly it's something like this: then object have a lesser value (or greater) than 0 (or 800) it will appear on the oth...
by nice
Sun Sep 15, 2013 8:10 pm
Forum: General
Topic: Help out a beginner (spawning objects)
Replies: 12
Views: 5249

Re: Help out a beginner (spawning objects)

There, is that better? :P Well, it should be better if you close the parentheses. function love.mousepressed(x, y, button) local object = {} object.image = triangleImage object.x = math.random(0, love.graphics.getWidth() - enemyImage:getWidth()) object.y = math.random(0, love.graphics.getHeight() -...
by nice
Sun Sep 15, 2013 6:28 pm
Forum: General
Topic: Help out a beginner (spawning objects)
Replies: 12
Views: 5249

Re: Help out a beginner (spawning objects)

Well, I would do something like this: function spawnEnemy(id) local enemy = {} enemy.health = 10 enemy.id = id enemy.image = enemyImage enemy.x = math.random(0, love.graphics.getWidth() - enemyImage:getWidth() enemy.y = math.random(0, love.graphics.getHeight() - enemyImage:getHeight() table.insert(...