Auto update simulator

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
ozergul
Prole
Posts: 11
Joined: Sat Apr 23, 2016 8:08 am

Auto update simulator

Post by ozergul » Fri May 06, 2016 9:50 pm

Hi,
I wanna make a game with löve. But I wonder if it is possible to update player when my code changed?

Because all time writing "love game.love" to terminal is a bit tiring.

Regards.

User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

Re: Auto update simulator

Post by Beelz » Fri May 06, 2016 9:55 pm

Depending on your editor and OS you can build straight from that without opening a terminal. Or (for windows at least) you can make a batch file to automatically open inside a terminal.........

https://love2d.org/wiki/Getting_Started

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website

ozergul
Prole
Posts: 11
Joined: Sat Apr 23, 2016 8:08 am

Re: Auto update simulator

Post by ozergul » Fri May 06, 2016 10:03 pm

Beelz wrote:Depending on your editor and OS you can build straight from that without opening a terminal. Or (for windows at least) you can make a batch file to automatically open inside a terminal.........

https://love2d.org/wiki/Getting_Started
My os is macos and I am using Sublime Text 3.

And I couldnt find anything in wiki for auto run

User avatar
zorg
Party member
Posts: 2983
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Auto update simulator

Post by zorg » Fri May 06, 2016 11:11 pm

It's possible, though it does not hinge on your code editor (or OS) of choice;
one example: viewtopic.php?f=5&t=77409&hilit=hotswap
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Auto update simulator

Post by qubodup » Sat May 07, 2016 4:15 am

Hi,
For livecoding/hotswapping there's also https://github.com/ChrisJan00/livecode_love
For integrating the love2d run command in Sublime 2, there's https://love2d.org/wiki/Sublime_Text_2

https://youtu.be/sVZv3JePH60
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

ozergul
Prole
Posts: 11
Joined: Sat Apr 23, 2016 8:08 am

Re: Auto update simulator

Post by ozergul » Wed May 18, 2016 7:34 pm

qubodup wrote:Hi,
For livecoding/hotswapping there's also https://github.com/ChrisJan00/livecode_love
For integrating the love2d run command in Sublime 2, there's https://love2d.org/wiki/Sublime_Text_2

https://youtu.be/sVZv3JePH60
you are the best man..

it very helped to me.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 20 guests