Search found 52 matches

by var77
Mon Oct 01, 2018 3:46 pm
Forum: Support and Development
Topic: [SOLVED] SNES Mode7 like (fake 3d)
Replies: 2
Views: 2552

[SOLVED] SNES Mode7 like (fake 3d)

Hi everyone, Well with few reasearch on the forum i found a some about love2d 3D prototype (that work pretty well), but that are not that easy to handle for uninitiate 3D dev. So i wonder if there is a way to handle something close (or like) to the old Mode7 from SNES to get some sample like in the ...
by var77
Tue Sep 25, 2018 4:04 pm
Forum: Support and Development
Topic: [SOLVED] List + Math
Replies: 4
Views: 2292

Re: List + Math

ok so i totaly mess and i miss something important sorry grump this new one correct a lot and print what i expected --on load var1 = 0 var2 = 0 var1max = 100 var2max = 100 list = {} -- update if #list < 2 then var1 = math.min(var1max, var1 + 1) if var1 == var1max then newobj = {id="1"} tab...
by var77
Tue Sep 25, 2018 3:13 pm
Forum: Support and Development
Topic: [SOLVED] List + Math
Replies: 4
Views: 2292

Re: List + Math

thanks @grump for answering fast. Yes i made some mistake with my previous code. So i add here the new one without mistake you noticed. --on load var1 = 0 var2 = 0 var1max = 100 var2max = 100 list={} --on update if var1 < var1max then var1 = var1 + 1 end if var2 < var2max then var2 = var2 + 1 end if...
by var77
Tue Sep 25, 2018 2:24 pm
Forum: Support and Development
Topic: [SOLVED] List + Math
Replies: 4
Views: 2292

[SOLVED] List + Math

Hi everyone well i'm back here with an interesting problem about list (array). Well i try to test something that look like that: --on load nblist=0 --on update list={} var1 = 0 var2 = 0 var1max = 100 var2max = 100 if var1 < var1max then var1 = var1 + 1 end if var2 < var2max then var2 = var2 + 1 end ...
by var77
Mon Aug 13, 2018 11:22 am
Forum: Games and Creations
Topic: [LD42] MASTER OF POWER (vs jealous villagers)
Replies: 0
Views: 2142

[LD42] MASTER OF POWER (vs jealous villagers)

TITLE.png Hi everyone my 1st LUDUM DARE here. Just finished i guess more a demo than a finished game but with some interesting stuff. I guess i like challenge, or i’m crazy as f*, and only start 10 hours before ending event. In “Master of power” you master big energy ball that you have to send to j...
by var77
Wed Jul 11, 2018 2:37 pm
Forum: Support and Development
Topic: [SOLVED] Z order drawing
Replies: 2
Views: 3030

Re: Z order drawing

Thanks grump for your answer. After a noon of test i try to handle it i found what i was searching on the forum there https://love2d.org/forums/viewtopic.php?t=10628 . That was what you wrote draw them by adding a Z value and "sort" them. In my case the swaping order is not a real problem ...
by var77
Wed Jul 11, 2018 10:31 am
Forum: Support and Development
Topic: [SOLVED] Z order drawing
Replies: 2
Views: 3030

[SOLVED] Z order drawing

Hi everyone i came back here to ask a little question about drawing order. I wanted to know if actually there are any way to control drawing order. To be more precise i know there is this tricky tutorial https://love2d.org/wiki/Tutorial:Drawing_Order but in my issue i got random object that not appe...
by var77
Wed Jun 20, 2018 4:51 pm
Forum: Support and Development
Topic: Math + sprite/triangle + orientation
Replies: 0
Views: 1708

Math + sprite/triangle + orientation

Hi everyone i post here an issue that i got with my little test. I'm pretty sure this can be solved by simple arithmetic that i ain't got. So i got a sprite (player) that can be moved with keyboard and is oriented with mouse mouvements. I juste wanted to add two things: A: wanted to add a sprite (co...
by var77
Thu Jun 14, 2018 7:05 pm
Forum: Support and Development
Topic: [SOLVED] Math + angle + following object on click
Replies: 13
Views: 9682

Re: [SOLVED] Math + angle + following object on click

Thanks pgimeno that solved my last issue on this topic. Condition for the distance: if dist ~= 0 then ... and also for the atan2 = 0: if love.mouse.isDown(1) then mpX = love.mouse.getX() mpY = love.mouse.getY() user.sx = user.x --start user.x position user.sy = user.y --start user.y position if user...