Search found 108 matches

by sphyrth
Sun Jul 14, 2019 10:03 pm
Forum: General
Topic: Custom map loading technique [Solved]
Replies: 32
Views: 9915

Re: Custom map loading technique

Remember #tileQuads? That counts how many tiles you have. That means you don't have to manually set the 2nd argument of random to that: tile = love.math.random(1, #tileQuads) -- or tile = love.math.random(#tileQuads) since the default min is "1" This way, you don't have to count how many tiles you h...
by sphyrth
Sun Jul 14, 2019 12:02 pm
Forum: General
Topic: Custom map loading technique [Solved]
Replies: 32
Views: 9915

Re: Custom map loading technique

lol - This time I'm out of that league. I can only help with the map-loading part. I think it's better that you create another thread concerning the Camera. You're on the right track anyway.

Happy coding!
by sphyrth
Sat Jul 13, 2019 12:35 am
Forum: Support and Development
Topic: I pass a number into a method but a table is returned
Replies: 4
Views: 791

Re: I pass a number into a method but a table is returned

There's something funky with the code. I also can't tell where the function sceneTeleport(num) is being called. The problem seems to lie in these things: function createButton(x,y,width,height,func,scene,arg) ... button.response = func button.arg = arg button.scene = scene ... end From this code, yo...
by sphyrth
Fri Jul 12, 2019 11:01 pm
Forum: General
Topic: Custom map loading technique [Solved]
Replies: 32
Views: 9915

Re: Custom map loading technique

function tilequad(x, y, count) local start = #tileQuads + 1 -- The #<tablename> (in this case, the tablename is tileQuads) counts the number of max tiles. -- the +1 means we'll start at the number NEXT to the last tile. -- This means we won't override anything before the table. for i = start, start...
by sphyrth
Thu Jul 11, 2019 12:25 pm
Forum: General
Topic: Custom map loading technique [Solved]
Replies: 32
Views: 9915

Re: Custom map loading technique

Those are a lot, let's see... Zooming, Scaling, Bigger Tiles I'm not sure if what you want to accomplish is to really "zoom" in, scale the image up, or just want bigger tiles without the zoom feature. On Zooming and Scaling, there's a tutorial on how to use love.graphics.push(), love.graphics.pop(),...
by sphyrth
Wed Jul 10, 2019 11:31 am
Forum: General
Topic: Custom map loading technique [Solved]
Replies: 32
Views: 9915

Re: Custom map loading technique

So I got a clue from pgimeno's comment. The cause of the black lines are y coordinates being set to decimals. Rounding them up or down with math.ceil() and math.floor() fixed the issue. Here's the love file for the people who want to check it out. loopingmap.love Although using Spritebatch is still ...
by sphyrth
Wed Jul 10, 2019 12:10 am
Forum: Support and Development
Topic: Creating a physics engine
Replies: 4
Views: 912

Re: Creating a physics engine

Studying Love2D's Physics Library might help you. especially love.graphics.newFixture, and love.graphics.getDistance.
by sphyrth
Tue Jul 09, 2019 10:07 pm
Forum: General
Topic: Learning Love
Replies: 3
Views: 2082

Re: Learning Love

Try Sheepolution. By the looks of things, you're ready for Chapter 5 or beyond.
by sphyrth
Tue Jul 09, 2019 11:18 am
Forum: General
Topic: is Love2D suitable for a serious game?
Replies: 12
Views: 4181

Re: is Love2D suitable for a serious game?

Bump I remember when StabYourself and Tangram Games were the only sites I can point to in regards to Serious Games Made with Löve. In fact, it was the latter's games (either Duck Marines or Sienna) that led me to this wonderful framework. And after "Move or Die", more Love2D games started flooding i...
by sphyrth
Mon Jul 08, 2019 10:35 pm
Forum: Games and Creations
Topic: Survive... ball?
Replies: 10
Views: 10456

Re: Survive... ball?

I like the concept. The player has already grasped how the game works even before they "play" it... and not having those "Do this" "Do that" Instructions is a big plus for me.

BTW, it made me feel dumb trying to start the game the traditional way, but that's worth it given the nostalgia vibe it gave.