Is it possible to simulate multiple screens at the same time in a single window in love 2d kind of like the concept image below?
A question on multiple screens in love 2d
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 39
- Joined: Sat Nov 28, 2015 10:13 am
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: A question on multiple screens in love 2d
When you say "simulate" multiple screens, do you mean can you draw what you see on one of your monitors in part of the love 2d window?
The question is a bit vague, can you try to do into further detail?
The question is a bit vague, can you try to do into further detail?
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: A question on multiple screens in love 2d
It is possible to render your game to a canvas, then draw said canvas multiple times, in the same window. Then again, you will see the exact same thing in all of them.
It's also possible to draw different parts of a game world to multiple canvases.
It's also possible to draw different parts of a game world to multiple canvases.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: A question on multiple screens in love 2d
Plenty of people have made fake windowing systems in Löve. I even dabbled in it.
-
- Prole
- Posts: 39
- Joined: Sat Nov 28, 2015 10:13 am
Re: A question on multiple screens in love 2d
You know the multiple screen thing that happens in mario kart 64 when you are in multiplayer mode?Sir_Silver wrote:When you say "simulate" multiple screens, do you mean can you draw what you see on one of your monitors in part of the love 2d window?
The question is a bit vague, can you try to do into further detail?
That's what I'm trying to achieve, but I don't know if it's fully possible to do in love 2d.
I'm thinking about using using stencils to make a sort of "window" and use the coordinate system to simulate multiple cameras, but I'm not sure about it.
- Sir_Silver
- Party member
- Posts: 286
- Joined: Mon Aug 22, 2016 2:25 pm
- Contact:
Re: A question on multiple screens in love 2d
Oh yeah, you can absolutely do what you're talking about with love! Basically, you just have to draw 4 or however many camera perspectives you want at certain positions on the screen. How you do that is up to you, but it's entirely possible.
Re: A question on multiple screens in love 2d
Some camera libraries even have explicit support for that. Check for example viewtopic.php?t=12033 - pay special attention to the picture and the paragraph that follows it.
Who is online
Users browsing this forum: Google [Bot] and 7 guests