Search found 59 matches

by Zer0
Sun Aug 31, 2014 7:36 pm
Forum: Games and Creations
Topic: Metanet Hunter 3 Confirmed?
Replies: 4
Views: 2103

Re: Metanet Hunter 3 Confirmed?

is that angry smilys he's throwing in the gif?
I was held at gunpoint to post a comment here. :awesome:
kidding ofc.
by Zer0
Wed Jul 30, 2014 11:00 am
Forum: Support and Development
Topic: How to release the memory??
Replies: 1
Views: 842

Re: How to release the memory??

You phrased that very bad. [wiki]love.graphics.newImage[/wiki] If you want to LOAD a new image. [wiki]love.graphics.draw[/wiki] If you want to DRAW an image. http://lua-users.org/wiki/GarbageCollectionTutorial collectgarbage is used to free memory but it should never be called because it's an expens...
by Zer0
Fri Jul 25, 2014 12:20 pm
Forum: Support and Development
Topic: Preventing lighting from being drawn on the background
Replies: 19
Views: 4100

Re: Preventing lighting from being drawn on the background

I can't draw the background manually, remember? The background is the default background that comes with love2d, color of which you can modify via love.graphics.setBackgroundColor. Though I could make my own background. Let me fix the code then. do_not_draw_background() love.graphics.setStencil(dra...
by Zer0
Fri Jul 25, 2014 8:55 am
Forum: Support and Development
Topic: Preventing lighting from being drawn on the background
Replies: 19
Views: 4100

Re: Preventing lighting from being drawn on the background

How would I use a stencil for that? draw_background() love.graphics.setStencil(draw_foreground()) draw_foreground() love.graphics.setStencil() [wiki]love.graphics.setStencil[/wiki] setStencil says you ONLY draw to where the stencil draws. (the stencil is just a function with stuff that is drawn)
by Zer0
Fri Jul 25, 2014 8:31 am
Forum: Support and Development
Topic: Preventing lighting from being drawn on the background
Replies: 19
Views: 4100

Re: Preventing lighting from being drawn on the background

What method are you using for drawing the lighting? Is it a shader or a mesh or something else? It's a spritebatch. A spriteBatch like 1 sprite per pixel? *cough* inefficient *cough* I was guessing for a shader and you did not really explain how you did the lightning. 1. Draw the background 2. Star...
by Zer0
Thu Jul 24, 2014 10:23 pm
Forum: Support and Development
Topic: Preventing lighting from being drawn on the background
Replies: 19
Views: 4100

Re: Preventing lighting from being drawn on the background

Probably using a canvas for the foreground (everything BUT the background) that is shaded and drawing it ontop of the unshaded background. [wiki]Canvas[/wiki] EDIT: I sure hope you're using spritebatches for those tiles. (Just mentioning because alot of draw calls is WAAAY more expensive than one dr...
by Zer0
Thu Jul 24, 2014 8:09 pm
Forum: Support and Development
Topic: [HOWTO]Debug code
Replies: 4
Views: 1372

Re: [HOWTO]Debug code

Can you tell me about other uses for the console. print shows nice formated messages, io.write does by default write to the console but can be set to write to a file instead, calling io.read from the main thread pauses the game until you write something into the console and can be good if you want ...
by Zer0
Thu Jul 24, 2014 3:04 pm
Forum: Support and Development
Topic: [HOWTO]Debug code
Replies: 4
Views: 1372

[HOWTO]Debug code

We all had bugs, but as you get better the less you will create. This guide won't help you avoid bugs, but it will tell you how to locate and fix them. Let's begin by having a look at the things we can use to find the source of bugs. error traceback - This is a pointer as to where the problem occure...
by Zer0
Fri Aug 23, 2013 2:07 pm
Forum: Libraries and Tools
Topic: Maze Thread
Replies: 47
Views: 14499

Re: Maze Thread

You guys are creating some very nice wall paper but I was wondering if you had any scripts that would permit specifying a starting position (like lower left corner) and an objective position (like upper right corner or center screen) and maze grid size - something used for game scripts? You could j...
by Zer0
Mon Aug 19, 2013 10:08 am
Forum: Support and Development
Topic: GameState help
Replies: 1
Views: 502

Re: GameState help

http://vrld.github.io/hump/ seems to have some good examples for hump. If you wondered about buttons and stuff you would probably want to create a table of buttons like. buttons = { { n="Play", -- name x=300, y=250, w=200, -- width h=100, -- height f=function() Gamestate.switch(game) end, }, } then ...