Search found 10 matches

by edwardander
Fri May 30, 2014 2:08 pm
Forum: Libraries and Tools
Topic: My code couldn't handle more than 30 bouncy rectangles
Replies: 3
Views: 901

My code couldn't handle more than 30 bouncy rectangles

Hello, i wrote a code which is using physics of löve. but unfortunately it goes very laggy after 30th rectangle. do i make a mistake at somewhere in code or this is the borders of the LÖVE? --flux = require "libs/flux" function love.load() love.physics.setMeter(100) world=love.physics.newWorld(0,9.8...
by edwardander
Fri May 30, 2014 7:53 am
Forum: General
Topic: Löve2d vs HaxeFlixel
Replies: 3
Views: 2931

Re: Löve2d vs HaxeFlixel

yes. honestly, i could not install haxeflixel properly to my linux distro (mint 16) too. also, you need to search and find stuff to get going on. as this guy said; http://gamasutra.com/blogs/LarsDoucet/20140318/213407/Flash_is_dead_long_live_OpenFL.php haxeflixel is not a batteries included toy. it ...
by edwardander
Fri May 30, 2014 7:02 am
Forum: General
Topic: Löve2d vs HaxeFlixel
Replies: 3
Views: 2931

Löve2d vs HaxeFlixel

as a newbie, i wonder what are the pros and cons of Löve against Haxe or HaxeFlixel. after discovering Löve, i begun to study Lua. it is great. easy and robust. but Haxe is seductively blinking to me everytime when i see games and applications which are made with. they look smooth. also you can impl...
by edwardander
Wed May 28, 2014 1:53 pm
Forum: Support and Development
Topic: Select mode
Replies: 8
Views: 1578

Re: Select mode

thank you sir! that's my final code. works good so far. function love.load() rectangles={} --there are two identical rectangles --first table.insert(rectangles, { x=10, y=20, width=200, height=50, fillColor={0,255,0,255}, tag="box1", tagColor={255,0,0,255}, isSelected=false, selectionColor={255,255,...
by edwardander
Wed May 28, 2014 11:05 am
Forum: Support and Development
Topic: Select mode
Replies: 8
Views: 1578

Same function behaves different

Hello, i got a little advanced code below. it draws two identical rectangles. it draws frame around of the rectangles if you click on them. also it should be dragging these rectangles when you click and drag with mouse. this feature works fine for the second rectangle, but not for first. where do i ...
by edwardander
Fri May 23, 2014 10:19 pm
Forum: Support and Development
Topic: Select mode
Replies: 8
Views: 1578

Re: Select mode

by the way, if i want to make a function that finds which rectangle is selected, should i call it in update? or draw?
by edwardander
Fri May 23, 2014 10:16 pm
Forum: Support and Development
Topic: Select mode
Replies: 8
Views: 1578

Re: Select mode

thank you for help. i will take these advices.
by edwardander
Fri May 23, 2014 9:40 pm
Forum: Support and Development
Topic: Select mode
Replies: 8
Views: 1578

Select mode

hi, i am trying to write a very basic program. there are 3 rectangles, when you clicked on one of them, it will be selected. but only one for each time. for instance, if one rectangle is selected and you clicked on another one or on blank area, it should return to unselected mode. my code is here, s...
by edwardander
Thu May 22, 2014 11:10 am
Forum: Support and Development
Topic: Click counter
Replies: 2
Views: 306

Re: Click counter

you know, after one moment you try really silly thing. but i can swear that i tried "love.mousepressed" function too. i think i need a coffee

thank you.
by edwardander
Thu May 22, 2014 10:41 am
Forum: Support and Development
Topic: Click counter
Replies: 2
Views: 306

Click counter

Hi all, i am just training on love. i decided to make a little program which is kind a showcase of flux tweening library. in scenario it must change the tweening ease at every click. but unfortunately, i could not change the index of the "easemods" by every single clicking. here is my code, where do...