Search found 50 matches

by bramblez
Thu Jun 06, 2013 3:21 am
Forum: Games and Creations
Topic: [wip] Cheese Defender
Replies: 12
Views: 9485

Re: [wip] Cheese Defender

hope that could help :>

also nice camera there!
by bramblez
Thu Jun 06, 2013 2:53 am
Forum: Games and Creations
Topic: [wip] Cheese Defender
Replies: 12
Views: 9485

Re: [wip] Cheese Defender

This is awesome! Very addictive and very fun!

I am suggesting making a crosshair and stick it to a mouse cursor, also you might want to scale position of a bullets too, since they fly not to a cursor positions
by bramblez
Wed Jun 05, 2013 7:28 am
Forum: Support and Development
Topic: Each word a different color?
Replies: 10
Views: 4136

Re: Each word a different color?

you need to love.graphics.setColor() again with color you need after you change color for your text. if key == "up" then love.graphics.setColor(255,0,0,255) text = "hello" elseif key == "down" then love.graphics.setColor(0,255,0,255) text = "bye bye" end love....
by bramblez
Wed Jun 05, 2013 6:39 am
Forum: Support and Development
Topic: Each word a different color?
Replies: 10
Views: 4136

Re: Each word a different color?

text = "hello" if key == "up" then love.graphics.setColor(255,0,0,255) elseif key == "down" then love.graphics.setColor(0,255,0,255) end love.graphics.print("this is something I would not say to a stranger "..text.." please take my money", 10,10) --...
by bramblez
Tue Jun 04, 2013 5:34 pm
Forum: Support and Development
Topic: [Solved] Save\Load without using libraries
Replies: 7
Views: 2052

Re: [Solved] Save\Load without using libraries

bartbes wrote:
bramblez wrote:but no luck. Is there a way to get a value from this file not as a string?
Well, you changed nothing, try using number = tonumber(file:read()).
And yes, it should be file:read, after file:open.
that's hot.

thank you very much :>
by bramblez
Tue Jun 04, 2013 3:34 pm
Forum: Support and Development
Topic: [Solved] Save\Load without using libraries
Replies: 7
Views: 2052

Re: [Not Solved] Save\Load without using libraries

What time is it? Unsolicited code advice time! Replace if not file == true then by if not file then , because the latter is much clearer. Well thank you, kindly :> You should actually open the file. In any case, it's because read returns a string. I've tried data = love.filesystem.newFile("1.t...
by bramblez
Tue Jun 04, 2013 2:52 pm
Forum: Support and Development
Topic: [Solved] Save\Load without using libraries
Replies: 7
Views: 2052

[Solved] Save\Load without using libraries

Hello, dear lovers :> I've read few posts about load/save data, but I don't want to use any libraries. I have a .txt file with only 1 number and I am using filesystem to get that number for using in a table. file= love.filesystem.exists("1.txt") if not file == true then print("made 1....
by bramblez
Mon Jun 03, 2013 3:03 am
Forum: Support and Development
Topic: [Solved] Problem with canvas and afterwards drawing.
Replies: 5
Views: 2213

Re: [Not Solved] Problem with canvas and afterwards drawing.

scale function resolution_load() can_w=1280 can_h=720 modes=love.graphics.getModes() current_mode=1 for i,v in ipairs(modes) do if v.width<can_w or v.height<can_h then modes[i]=nil end end table.sort(modes, function(a, b) return a.width*a.height < b.width*b.height end) canvas=love.graphics.newCanvas...
by bramblez
Sun Jun 02, 2013 6:07 pm
Forum: Support and Development
Topic: [Solved] Problem with canvas and afterwards drawing.
Replies: 5
Views: 2213

Re: [Not Solved] Problem with canvas and afterwards drawing.

this is .love file for you to check
by bramblez
Sun Jun 02, 2013 3:46 pm
Forum: Support and Development
Topic: [Solved] Problem with canvas and afterwards drawing.
Replies: 5
Views: 2213

Re: [Not Solved] Problem with canvas and afterwards drawing.

Basicly I almost got it, but not there yet. =( function button_check(dt) for i,v in ipairs(button) do if mousex > v.x * scale and mousex < v.x * scale + font[1]:getWidth(v.text) * scale and mousey > v.y * scale and mousey < v.y * scale + font[1]:getHeight(v.text) * scale then v.mouseover = true else...