Search found 801 matches

by veethree
Wed Jan 16, 2019 12:44 pm
Forum: Games and Creations
Topic: bitz - a puzzle game for iOS
Replies: 2
Views: 153

Re: bitz - a puzzle game for iOS

why not android too?
by veethree
Thu Jan 10, 2019 11:58 am
Forum: General
Topic: TicTacToe Question
Replies: 7
Views: 202

Re: TicTacToe Question

Could use a 2d array like

Code: Select all

board = {
		{0, 0, 0},
		{0, 0, 0},
		{0, 0, 0}
	}
and draw it like

Code: Select all

for y=1, #board do
		for x=1, #board[1] do
			love.graphics.rectangle("fill", x * cellSize, y * cellSize, cellSize - 1, cellSize - 1)
		end
	end
where cellSize is how large each cell of the board is.
by veethree
Fri Nov 23, 2018 10:27 pm
Forum: Support and Development
Topic: Quit instead of "No Game"
Replies: 4
Views: 533

Re: Quit instead of "No Game"

I don't think that's a love.run thing. I'm talking out of my ass, But i'd guess the "no game" screen is a .löve file or something like that that löve loads if you run it without a game. If that's the case you'd probably have to modify the löve source for it to quit.
by veethree
Fri Nov 16, 2018 10:27 pm
Forum: Support and Development
Topic: Creatin an adventure/rpg game.
Replies: 14
Views: 1009

Re: Creatin an adventure/rpg game.

how much time do you save by omitting the g's at the end of words
by veethree
Mon Nov 12, 2018 5:38 am
Forum: Support and Development
Topic: Trouble With Tables [SOLVED]
Replies: 5
Views: 818

Re: Trouble With Tables

You need to define A as a table inside Z.

Code: Select all

Z  = {A = {B = 3}}
by veethree
Thu Nov 08, 2018 5:53 pm
Forum: General
Topic: Code Doodles!
Replies: 153
Views: 51768

Re: Code Doodles!

Wrote a function that extracts colors from an image. It does this in a very naive way so it only works good sometimes. 1541699318.png 1541699312.png 1541699302.png function love.load() http = require("socket.http") s = "" love.window.setMode(640, 480) love.graphics.setLineStyle("rough") local img = ...
by veethree
Sat Nov 03, 2018 8:22 pm
Forum: Support and Development
Topic: Why are these variables not increasing [SOLVED]
Replies: 3
Views: 918

Re: Why are these variables not increasing

Could have just put the code in the post like io.stdout:setvbuf("no") function love.load() x = 42 z = 42 y = {x,z} end function love.update() for i,v in ipairs(y) do y[i] = y[i] + 2 end print(x,z) end What's happening there is, instead of putting the x and z variables into the y table, You're puttin...