LÖVE2D help

Xen0

Well-Known Member
OP
Member
Joined
Oct 8, 2015
Messages
518
Trophies
0
Age
24
XP
1,690
Country
Germany
So I´m learning lua atm but there´s one thing that keeps annoying me. Everytime I want to test the project I have to drag the complete folder over the love.exe. I know you can avoid that by inserting a .bat in the projects diretory, but for me it somehow don´t work.
My .bat contains
Code:
@ECHO OFF

start "" "%PROGRAMFILES(x86)%\LOVE\love.exe"
And when executing the .bat it even opens the love.exe but it´s just the default screen when there´s no game.

any suggestions?
 

Veiva

Member
Newcomer
Joined
Dec 22, 2011
Messages
19
Trophies
0
XP
105
Country
United States
You need to specify the path to the game as an argument.

I'd suggest:

Code:
@echo off

"C:\Program Files (x86)\LOVE\love.exe" --console "C:\path\to\game"

This would work if "C:\path\to\game" contains main.lua (i.e., the directory containing your Love game).

(You'll be able to see the result of print calls with the --console flag, since it seems possible you're not using an editor that supports debugging Lua programs. I suppose this is why you used "START"?)
 
Last edited by Veiva,
  • Like
Reactions: migles and Xen0

Xen0

Well-Known Member
OP
Member
Joined
Oct 8, 2015
Messages
518
Trophies
0
Age
24
XP
1,690
Country
Germany
I'll test this tomorrow :)
I just used start because it was made so at the tutorial I'm watching (there it works for whatever reason) and also on the official love2d wiki.

Edit: Actually I tryed ASAP, at it works, thank you :)
 
Last edited by Xen0,

Xen0

Well-Known Member
OP
Member
Joined
Oct 8, 2015
Messages
518
Trophies
0
Age
24
XP
1,690
Country
Germany
Well have anither problm actually: I want a ball get bounced off another rectagle, so a little pong-game, how do I that? Both objects are dynamic and when they collide the rectangle get bounced by the ball too. I tried to give the rectangle more weight, but that didn´t really solve it.
 

Xen0

Well-Known Member
OP
Member
Joined
Oct 8, 2015
Messages
518
Trophies
0
Age
24
XP
1,690
Country
Germany
How can I make a dynamic Object with a picture? I only manage to show a image up and move it and stuff, but it can go though walls because it´s no object :x
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm