Edit Code In Real Time (Game Time)

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
User avatar
i_love_u
Prole
Posts: 28
Joined: Sat Nov 29, 2014 12:13 am

Edit Code In Real Time (Game Time)

Post by i_love_u »

:awesome: Is there not a way to edit my script with the game running, click back in my game window and see the changes instantly? I want this instead of having to close it and rerun the game every time I tweak it.. :awesome: :crazy: :huh: :cool:
Last edited by i_love_u on Mon Dec 08, 2014 4:13 am, edited 2 times in total.
User avatar
s-ol
Party member
Posts: 1077
Joined: Mon Sep 15, 2014 7:41 pm
Location: Cologne, Germany
Contact:

Re: Edit Code In Real Time (Game Time)

Post by s-ol »

i_love_u wrote::awesome: Is there not a way to edit my script with the game running, click back in my game window and see the changes instantly? I want this instead of having to close it and rerun the game every time I tweak it.. :awesome: :crazy: :huh: :cool:
Take a look at ZeroBrane Studio, they have a video demonstrating live coding.

s-ol.nu /blog  -  p.s-ol.be /st8.lua  -  g.s-ol.be /gtglg /curcur

Code: Select all

print( type(love) )
if false then
  baby:hurt(me)
end
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: Edit Code In Real Time (Game Time)

Post by davisdude »

There's also this thing called hotswapping somebody made. I've never used it, but it looks pretty cool.
https://github.com/rxi/lurker
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: Edit Code In Real Time (Game Time)

Post by bobbyjones »

Yeah lurker is the way to go.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 234 guests