Search found 59 matches

by Zer0
Fri Feb 15, 2013 10:17 pm
Forum: Libraries and Tools
Topic: Line intersection
Replies: 3
Views: 1770

Line intersection

Found this little demo on my USB stick, Hope you understand what I was thinking when I wrote it better than I do now. EDIT: Understood something. line(lines) checks for collision in the new one. it goes like this line({{x1,y1},{x2,y2}}) and returns nil if no position were found right click for more ...
by Zer0
Thu Feb 07, 2013 8:40 am
Forum: Games and Creations
Topic: [TPE1] HexaSweeper (Alpha 0.3.1)
Replies: 18
Views: 10982

Re: [TPE1] HexaSweeper

@ pakoskyfrog
I gave up because i lost the usb stick and when i found i I kept on working on another game on it.
I will probably start working on it again.
by Zer0
Wed Feb 06, 2013 8:15 pm
Forum: Games and Creations
Topic: [TPE1] HexaSweeper (Alpha 0.3.1)
Replies: 18
Views: 10982

Re: [TPE1] HexaSweeper

This is pretty awesome, I remember I tried to make a game like this but gave up. Looked through some old USB sticks and found it. Won't even launch from anything else than the love build on the USB. ( I probably made a custom build and lost the source or something ) Last date modified was 2012-11-03...
by Zer0
Sat Feb 02, 2013 4:34 pm
Forum: Support and Development
Topic: [Solved] Managing buttons in table in the same state
Replies: 2
Views: 1321

Re: [Not solved] Managing buttons in table in the same state

function button_remove(i) if i == nil then print("button_remove()") button = nil button = {} elseif type(i) == "number" then print("button_remove(" .. i .. ")") table.remove(button,i) else for k,v in ipairs(button) do if v.text == i then print("button_re...
by Zer0
Tue Jan 29, 2013 4:04 pm
Forum: Support and Development
Topic: [Solved] Problem with states and drawing buttons
Replies: 6
Views: 2374

Re: [not Solved] Problem with states and drawing

here is all i've got so far >< i can't get it, where do i use setmode(m) function? setMode was just an example you might want it as states_set(m) if you go by current naming. you use it everytime you switch state, like when you switch from intro to menu. and you call menu_load() and options_load() ...
by Zer0
Mon Jan 28, 2013 1:04 pm
Forum: Support and Development
Topic: [Solved] Problem with states and drawing buttons
Replies: 6
Views: 2374

Re: [Solved] Problem with states and drawing

Can you tell me, depending on my button table what would be the function to delete the button? I am at school so I can't check anything but i suppose you could create a function for mode = "somemode" like function setMode(m) buttons_clear() if m == "menu" then menu_load() -- and...
by Zer0
Sun Jan 27, 2013 10:11 pm
Forum: Support and Development
Topic: Shaders? How Can I Use This COOL THING!
Replies: 6
Views: 4990

Re: Shaders? How Can I Use This COOL THING!

TheP3 wrote:Are there any other shader functions Love2D comes with? Is there a wiki page? I really don't feel like looking through the source... haha
https://www.love2d.org/wiki/love.graphi ... ixelEffect
https://www.love2d.org/wiki/PixelEffect

wiki pages
by Zer0
Sun Jan 27, 2013 9:57 pm
Forum: Support and Development
Topic: Shaders? How Can I Use This COOL THING!
Replies: 6
Views: 4990

Re: Shaders? How Can I Use This COOL THING!

However, how does it know to apply that shader just to the rectangle? The pixelEffect ( shader ) only applies to things being rendered ( in this case the square ) Also, you never called or executed effect. How did that get executed? Is it a default for Love2D or something? One last thing, the effec...
by Zer0
Sun Jan 27, 2013 9:43 pm
Forum: Libraries and Tools
Topic: Simple grid walking (code example)
Replies: 2
Views: 1693

Re: Simple grid walking (code example)

Saegor wrote:hi ! thanks for sharing !

take the habit of posting .love file
you code crash because "s" was not declared (used for collision check it seems)
I just forgot to attach it...
Will attatch now.

"s" was actually the speed
by Zer0
Sun Jan 27, 2013 9:08 pm
Forum: Support and Development
Topic: Pick a random image?
Replies: 2
Views: 2172

Re: Pick a random image?

I want my game to pick a random image using this piece of code ObjNum = math.random(1, 3) scenes = love.graphics.newImage("Images/"ObjNum".png") When I run the game, It tells me Syntax Error: main.lua:11: ')' expected near 'ObjNum' ObjNum = math.random(1, 3) scenes = love.graphi...