Executing Programs Within Love2D Project

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
cjlucas85
Prole
Posts: 2
Joined: Thu May 03, 2012 11:48 pm

Executing Programs Within Love2D Project

Post by cjlucas85 »

Is anyone aware of a means of executing a love2d project that is stored within *.love?

The directory structure will look like this:
  • main.lua
    game1.love
    game2.love
Or it will look like this:
  • main.lua
    game1/
    game2/
The reason I want to execute game1 or game2 is because I want to make a game kiosk. The idea is that the Kiosk will execute the game selected from a menu, and the game selected will execute over the game in another window; in Windows and Linux this effect will pop the game over the Kiosk. I can get this to work with os.execute() and running the Kiosk by executing "love Kiosk/"; however, because os.execute() is relative to the current working directory I have to put in os.execute("Kiosk/" .. gameSelected) in order to run the sub game, and this forces the project to be in a folder and not a love extension executable, which I want to be able to do in order to easily distribute it.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Executing Programs Within Love2D Project

Post by Robin »

The solution here is not to write the Kiosk in LÖVE, sorry.
Help us help you: attach a .love.
cjlucas85
Prole
Posts: 2
Joined: Thu May 03, 2012 11:48 pm

Re: Executing Programs Within Love2D Project

Post by cjlucas85 »

Alright, thanks for the reply. It helps knowing that it's not possible because there were a few other approaches I had in mind.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest