Search found 7 matches

by Batrachus
Mon Sep 26, 2011 1:12 pm
Forum: Support and Development
Topic: Fu*ked colors
Replies: 3
Views: 1689

Fu*ked colors

For some reason all colors of game have only 21,666...% of normal light. I use love.graphics.color() and love.graphics.point(). Full alpha. I'm sure that there's no fault in rest of my code. What's happenning?
by Batrachus
Sat Apr 16, 2011 7:47 pm
Forum: Support and Development
Topic: A background disproportionately consumes CPU
Replies: 11
Views: 4869

Re: A background disproportionately consumes CPU

Wat? :ultrashocked: I bet when I was programming the game, it wasnt so. And altrough I fixed it, still it doesnt work.
by Batrachus
Sat Apr 16, 2011 7:33 pm
Forum: Support and Development
Topic: A background disproportionately consumes CPU
Replies: 11
Views: 4869

Re: A background disproportionately consumes CPU

mapa = {} dolu = 0 nahoru = 0 poloha = 50 function round(num) return num - (num % 1) end function getVyska() zlomek = poloha % 1 return (mapa[poloha - (poloha % 1)] + (mapa[poloha + 1 - ((poloha + 1) % 1)] - mapa[poloha - (poloha % 1)]) * zlomek) end function love.load() love.graphics.setColorMode(...
by Batrachus
Sat Apr 16, 2011 6:51 pm
Forum: Support and Development
Topic: A background disproportionately consumes CPU
Replies: 11
Views: 4869

Re: A background disproportionately consumes CPU

Without background image the FPS stabilized on 61. With background image it was less than 1.
by Batrachus
Sat Apr 16, 2011 4:07 pm
Forum: Support and Development
Topic: A background disproportionately consumes CPU
Replies: 11
Views: 4869

A background disproportionately consumes CPU

In love.load I have this: love.graphics.setColorMode("replace") nebe = love.graphics.newImage("nebe.png") ... And in love.draw: love.graphics.setBackgroundColor(152, 68, 0) love.graphics.draw(nebe, 0, 0, 0, 1, 1, 0, 0) love.graphics.setColor(0, 0, 0) ... The file nebe.png looks l...
by Batrachus
Sat Apr 16, 2011 9:11 am
Forum: Support and Development
Topic: Loops
Replies: 5
Views: 2193

Re: Loops

I found it. Thx, BlackBulletIV.

So, these are loops? I find it confusing. Im not wont to programm in this.

http://www.lua.org/pil/4.3.3.html - this is like do while?
http://www.lua.org/pil/4.3.2.html
http://www.lua.org/pil/4.3.4.html
http://www.lua.org/pil/4.3.5.html - this is like foreach?
by Batrachus
Sat Apr 16, 2011 8:52 am
Forum: Support and Development
Topic: Loops
Replies: 5
Views: 2193

Loops

I was looking for loops on wiki, on forums and I didnt found anything. So I ask: Do in Löve exist loops? I mean for, while etc. Thanks for answers.