Yeah, like I stated in that last quote, as long as there is no extra effort for the lover to make things work on the Wii as well as on other platforms, I see no problems. It's somewhat inelegant to have an extended API for the Wii, but as long you don't need to think every line you write: "Would this run on the Wii?", it's not an issue.Henko wrote:Even if the games began to depent on wii-only features, it is still the lover's decision. If he wants to break compatibility with PC, we should let him do that. On the other hand, those features can be extremly useful to improve the game experience. For example, hearing a gunshot out of the controller can be nice, but certainly is not neccessary. Also, lovers should always be aware that if they want to use the exclusive features of the wii, they should think of alternating mechanisms for the PC...
Porting love2d to other platforms
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Porting love2d to other platforms
Help us help you: attach a .love.
Re: Porting love2d to other platforms
Henko wrote:with iif() being the equivalent to C's ternary operator (or vb's iif):Code: Select all
if love.keyboard.isDown(iif(love.system == "wii", "wiihome", "return")) then
Code: Select all
function iif(cond, truePart, falsePart) if cont then return truePart end return falsePart end
Code: Select all
if love.keyboard.isDown(love.system == "wii" and "wiihome" or "return") then
Re: Porting love2d to other platforms
hm, true. I should get used to Lua's logic concerning those operators. Still thinking in VB's waysthelinx wrote:Henko wrote:with iif() being the equivalent to C's ternary operator (or vb's iif):Code: Select all
if love.keyboard.isDown(iif(love.system == "wii", "wiihome", "return")) then
Code: Select all
function iif(cond, truePart, falsePart) if cont then return truePart end return falsePart end
Code: Select all
if love.keyboard.isDown(love.system == "wii" and "wiihome" or "return") then
- toaster468
- Citizen
- Posts: 77
- Joined: Sat Nov 06, 2010 11:30 pm
Re: Porting love2d to other platforms
tu hablo espanol, no?j3d1 wrote: Yes, sorry. Was wrong.
Re: Porting love2d to other platforms
Hola! Por desgracia, no. I - Rusia. Puedo utilizar Google Traductortoaster468 wrote: tu hablo espanol, no?
Re: Porting love2d to other platforms
I know that part!j3d1 wrote:Google Traductor
Hello, I am not dead.
Who is online
Users browsing this forum: No registered users and 11 guests