Search found 29 matches

by Smoggert
Tue Nov 29, 2016 1:08 am
Forum: Support and Development
Topic: How to draw all objects on screen?
Replies: 12
Views: 10997

Re: How to draw all objects on screen?

local actors = { n = 0 } actors.__index = actors function actors.add(self, actor) self.n = self.n + 1 self[self.n] = actor end function actors.draw(self) for i=self.n,1,-1 do self[i]:draw() end end function love.load() -- actor(name, position, isVisible) local chris = actor("Chris", "...
by Smoggert
Mon Nov 28, 2016 1:36 pm
Forum: Support and Development
Topic: How to draw all objects on screen?
Replies: 12
Views: 10997

Re: How to draw all objects on screen?

^ in order for this to work you would have to send the table reference (actors) with each actor you create.
Running the insert manually feels less convoluted, unless you would make a "actorhandler" class and run it with that.
by Smoggert
Tue Nov 22, 2016 11:19 am
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411459

Re: "Questions that don't deserve their own thread" thread

s-ol wrote:He was talking about drawing static parts to canvases, then drawing them as quads unless I am the one who misunderstood.
Exactly :)
by Smoggert
Tue Nov 22, 2016 11:17 am
Forum: General
Topic: Share your fiddles!
Replies: 26
Views: 11977

Re: Share your fiddles!

alloyed wrote:http://lovefiddle.com/H56HHtA4mCJnEM5pY
here's a procedural dungeon generator ripped from my game
this is the debug mode, so you get to watch the dungeon being made in real time :O
I like it :D you get a clear view of whats happening
by Smoggert
Mon Nov 21, 2016 9:54 pm
Forum: General
Topic: Share your fiddles!
Replies: 26
Views: 11977

Re: Share your fiddles!

Damn, that's pretty cool! :cool:
Btw, the love.wheelmoved(x,y) function feeds -100/100 y-values instead of the regular -1/1 from love. Not sure if you can fix that or if its dependant on some lib you used.

For now I'll just devide the value by 100 I suppose ^^.
by Smoggert
Mon Nov 21, 2016 7:14 pm
Forum: General
Topic: Share your fiddles!
Replies: 26
Views: 11977

Re: Share your fiddles!

I fiddled my lastest project. (tuned it down a bit for the fiddle to not crash) http://lovefiddle.com/cNr47LHZn4vLJm44t Adjustable map variables line 4 - 7 Spacebar generates a newly seeded map 101x101 noise generated heightmap in 2.5d (down from 1001x1001 in my desktop version) The scroll functiona...
by Smoggert
Mon Nov 21, 2016 4:15 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411459

Re: "Questions that don't deserve their own thread" thread

Is it possible to make some sort off loadDraw() function? Where you basically just draw all your canvases that wont change during the game (like game terrain) once. (as calling the graphics module during load does not work :< ) After which u just always call your canvas in the regular draw function...
by Smoggert
Mon Nov 21, 2016 3:17 pm
Forum: Support and Development
Topic: "Questions that don't deserve their own thread" thread
Replies: 905
Views: 411459

Re: "Questions that don't deserve their own thread" thread

Is it possible to make some sort off loadDraw() function? Where you basically just draw all your canvases that wont change during the game (like game terrain) once. (as calling the graphics module during load does not work :< ) After which u just always call your canvas in the regular draw function?...
by Smoggert
Sun Nov 20, 2016 1:27 pm
Forum: Support and Development
Topic: [Solved] newFont loading from save directory when project ran from .love
Replies: 5
Views: 3574

Re: newFont loading from save directory when project ran from .love

I don't know what is buggy about this code; I ran this test with your provided code: Tested on W7 - 64 bit FontBug.love I did not run into any issues. Edit: I debug my applications with the love console. So i replaced your debug line with a regular print. Looking at the actual return value, I guess ...
by Smoggert
Thu Nov 17, 2016 9:28 pm
Forum: Games and Creations
Topic: SUMMON PROJECT
Replies: 30
Views: 23114

Re: SUMMON 2044

Jwatt wrote:Image
Have you been watching Mahou shoujo ikuseikeikaku? xD