Sidescrollers? (And if not then major feature request)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
MHD
Prole
Posts: 18
Joined: Fri Nov 14, 2008 11:45 pm
Location: Denmark

Sidescrollers? (And if not then major feature request)

Post by MHD »

I am thinking of making quite a large side scroller. But I have no idea how to do it...

I can't seem to find any information about moving a world around in the documentation, and if that is not possible the this game would be a PAIN to make.

So. How do you do sidescrollers?

Also, It would be very nice to have an eviroment larger than the screen:
In config:

Code: Select all

EnviromentX = 5000
EnviromentY = 5000
And in main:

Code: Select all

love.graphics.setScreen(X,Y)
Body:isOnScreen()
Shape:isOnScreen()
Then being able to set the screen position inside a fixed enviroment, instead of relating to screen pixels you could relate to a global enviroment.
I r awsum at looah ^^
u9_
Citizen
Posts: 54
Joined: Thu Oct 23, 2008 7:12 am

Re: Sidescrollers? (And if not then major feature request)

Post by u9_ »

as far as i know you define the size of the world when you create it, and you are free to relate world coordinates to screen coordinates as you see fit. (I assume you are talking about the physics engine.)

Sidescrollers usually use a tile map to render the world, so each section of the world is stored as a number, which represents a certain tile. You then render the screen depending on where your "camera" is looking. This is done to save memory, because you cannot store a very large map pre-rendered before you run out of memory.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 4 guests