Search found 768 matches

by veethree
Sat Feb 03, 2018 1:29 pm
Forum: General
Topic: Code Doodles!
Replies: 146
Views: 36430

Re: Code Doodles!

This is somewhat inspired by grump's thing, But significantly less interesting. It "evolves" the complete works of Shakespeare from a random string. function love.load() goal = "The complete works of Shakespeare." current = rndstring(#goal) gen = 0 fit = fitness(current) finished = false run = false...
by veethree
Sun Dec 31, 2017 3:31 pm
Forum: General
Topic: Code Doodles!
Replies: 146
Views: 36430

Re: Code Doodles!

Made a thing. 1514734036.png (it moves) screen = { width = love.graphics.getWidth(), height = love.graphics.getHeight() } function love.load() t = "" love.graphics.setBackgroundColor(10, 10, 30) array = {} canvas = love.graphics.newCanvas() trail = love.graphics.newCanvas() time = 0 --Settings count...
by veethree
Mon Jul 24, 2017 9:46 pm
Forum: Support and Development
Topic: Gun Image, and while true dos?
Replies: 6
Views: 813

Re: Gun Image, and while true dos?

Post your code. Makes it significantly easier for us to help you. If you have a while true loop with love.timer.sleep() in it, I'd assume your game will be frozen until that loop stops. As for welding an image together, You can just draw the first image at a certain position, then calculate where th...
by veethree
Sun Jun 18, 2017 1:21 am
Forum: Support and Development
Topic: Shader problem on android.
Replies: 0
Views: 383

Shader problem on android.

Hello. I have 2 shaders in my game. I haven't noticed any issues on PC, But on android one of the shaders doesn't look right. And it appears to get worse the longer the game runs. Here's the shader in question: extern number time; extern number strength; extern vec2 screen; vec4 effect(vec4 color, I...
by veethree
Mon Jun 12, 2017 12:56 am
Forum: Games and Creations
Topic: Cactus game.
Replies: 37
Views: 7301

Re: Cactus game.

I wasn't gonna work on this any more, but then i did. Updated the OP. There's like a million changes and it works pretty well on mobile.
Cactus game.
by veethree
Mon Jun 05, 2017 8:06 pm
Forum: Games and Creations
Topic: Cactus game.
Replies: 37
Views: 7301

Cactus game.

Cactus game.
1497228619.png
1497228619.png (47 KiB) Viewed 2256 times


Available on itch.io


Cactus_game_1.0_src.love
Cactus game (1.0) 0.10.2
(4.9 MiB) Downloaded 94 times
by veethree
Mon Apr 24, 2017 10:13 pm
Forum: General
Topic: mouse position problem
Replies: 4
Views: 866

Re: mouse position problem

Try this love.graphics.print(love.mouse.getX()) love.mouse.getX is a function, You need to end it with (). oh ok, i tried it using a variable like mousepos = love.mouse.getX() and print the mousepos.. it works, but the number wont change when i move the mouse... You're probably calling "mousepos = ...
by veethree
Mon Apr 24, 2017 5:42 am
Forum: General
Topic: mouse position problem
Replies: 4
Views: 866

Re: mouse position problem

Try this

Code: Select all

love.graphics.print(love.mouse.getX())
love.mouse.getX is a function, You need to end it with ().
by veethree
Tue Apr 11, 2017 10:01 pm
Forum: General
Topic: Code Doodles!
Replies: 146
Views: 36430

Re: Code Doodles!

I got inspired by rmcode's rain thing and made a slightly more elaborate version of it. rain.gif screen = { width = love.graphics.getWidth(), height = love.graphics.getHeight() } function love.load() --love setup love.graphics.setLineStyle("rough") love.filesystem.setIdentity("Rain") local _w, _h, _...
by veethree
Sun Feb 05, 2017 2:03 am
Forum: Support and Development
Topic: ParticleSystem and setColor
Replies: 3
Views: 535

Re: ParticleSystem and setColor

Set the color back to white before drawing the particle system.