| View previous topic :: View next topic |
| Author |
Message |
haringz
Joined: 24 Oct 2005 Posts: 5
|
Posted: Tue Oct 25, 2005 8:03 am Post subject: My code doesn't update anymore in lowser .. |
|
|
So I got my hands dirty with classes...
Now I got some strange problem :
I created a few classes
like this :
| Code: |
Sprite = { positionX = 0,
positionY = 0,
}
function Sprite:new(o)
o = o or {}
self.stationary = Animation:new()
setmetatable(o, self)
self.__index = self
return o
end
|
made an other class that I use in the sprite class (animation)
and that one blits
so in my main loop I call the function :
| Code: |
sprite.animation:animate(0,0)
|
that was the idea ... but now my code doesn't update anymore if I make changes
I am using usbmode in lowser to develop using latest version of luaplayer.
took me 1h to discover, my code actually didn't update anymore :(
any clues ? |
|
| Back to top |
|
 |
haringz
Joined: 24 Oct 2005 Posts: 5
|
Posted: Tue Oct 25, 2005 8:30 am Post subject: |
|
|
just a thought ...
could this be because I include an other file ? like this :
referring to my objects.lua file
If I am not mistaken changes in the included file don't update. |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Tue Oct 25, 2005 12:05 pm Post subject: |
|
|
| haringz wrote: | just a thought ...
could this be because I include an other file ? like this :
referring to my objects.lua file
If I am not mistaken changes in the included file don't update. |
use do_file instead _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
haringz
Joined: 24 Oct 2005 Posts: 5
|
Posted: Wed Oct 26, 2005 5:15 am Post subject: |
|
|
| thanks! seems to work good now. |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Wed Oct 26, 2005 6:31 am Post subject: |
|
|
Whoa... I actually made a productive comment? Fuck, my brain is going to explode. _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
|