Search found 13 matches

by zenith
Thu Nov 21, 2019 3:23 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 167279

Re: Gspöt - retained GUI lib

thank you!
by zenith
Thu Nov 21, 2019 5:52 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 167279

Re: Gspöt - retained GUI lib

I mean, how to update text string on separate gui:text element on button click?
by zenith
Wed Nov 20, 2019 4:35 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 169
Views: 167279

Re: Gspöt - retained GUI lib

Hey! How to update label text on button click? Something like that:

Code: Select all

function love.load()
	number=0
	text=gui:text(number)
	
	button=gui:button('Click me')
	function button.click(this,x,y)
		number=number+1
	end
end
by zenith
Tue Jan 07, 2014 10:23 am
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

hey guys! 0.9.0 is out, huh
anyway, can anyone please suggest any tutorial on love.filesystem?
by zenith
Thu Nov 14, 2013 10:13 am
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

here's the situation: i have tables inside the table and i need to draw them. my variant don't work, of course function menuBattleSpawn() menuBattle = { attack = { name = 'Attack', entry = {} }, item = { name = 'Items', entry = {} }, skill = { name = 'Skill', entry = {} } } end function menuBattleDr...
by zenith
Sun Nov 10, 2013 7:36 am
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

thanks!

timers are weird indeed. if i have e.g. 5 simultaneous events on screen than i must have 5 different timer vars on love.load? that's not looks very handy for me.
delta time is a love's thing or lua's?
by zenith
Mon Oct 28, 2013 1:13 pm
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

totally confused with timers sample program shoud count every second 5 times function love.load() display = {} timer = 0 end function love.draw() love.graphics.print(timer, 10, 10) -- showing current timer for i,v in ipairs(display) do love.graphics.print(v, 10, 10 + i*15) end end function love.upda...
by zenith
Fri Oct 25, 2013 10:01 am
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

stupdgame 0.0.0.2 done: some gui bullets are now SHOWING there is actually some gameplay now sounds works normally (TEsound library) assets are sorted to folders bugs: bullet start point still not defined properly sometimes collision detection don't detect collision to do: add animation for target m...
by zenith
Wed Oct 23, 2013 4:45 pm
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

side quest: this math.atan2 thing drove me mad and i tried to remember all trigonometry stuff from school (which is quite impossible) and wrote myself a problem write a program which: 1) draws a circle 2) divide it with lines to given amount of sectors origin = {} origin.x = 150 origin.y = 150 funct...
by zenith
Wed Oct 23, 2013 12:43 pm
Forum: Games and Creations
Topic: stupid game
Replies: 16
Views: 11557

Re: stupid game

stupdgame 0.0.0.1 done minor irrelevant tweaks such as crosshair toggle (q key) super unrealistic laser sight sounds half-assed version control clip, rounds fired counter, reloading (r key) player rotates (thanks to micha )! to do help needed with theese, as always :( bullets trajectory formulas, i'...