Launch problems

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ElmuKelmuZ
Prole
Posts: 14
Joined: Sat Sep 01, 2012 7:43 pm

Launch problems

Post by ElmuKelmuZ »

I've just downloaded LÖVE. I have previous experience with Lua, and I decided to make a small project to learn more about LÖVE.
However, I made a .rar which contains "menubg.jpeg", "bgmusic.ogg" and "main.lua". Then I named the .rar as "game.love", however, when I launch it, the pink piggy "game" starts up. How can I start up my own project?


This is whats inside main.lua:

Code: Select all

function love.load()
   pjface = love.graphics.newImage("menubg.jpeg")
   x = 50
   y = 50
end

function love.draw()
   love.graphics.draw(pjface, x, y)
end

function love.update(dt)
   if love.keyboard.isDown("down") then   -- reduce the value
      love.graphics.print("down")
   end
   if love.keyboard.isDown("up") then   -- increase the value
      love.graphics.print("up")
   end
end

bgm = love.audio.newSource("bgmusic.ogg", "stream")
love.audio.play(bgm)
User avatar
dreadkillz
Party member
Posts: 223
Joined: Sun Mar 04, 2012 2:04 pm
Location: USA

Re: Launch problems

Post by dreadkillz »

rar format is not supported. Use zip.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests