Hi! I was looking (and couldn’t find) for some set of best practices to build a multi platform app. I know that whole Defold is about it but still there is always some place you need to make some differentiations.
Let’s say I want to build a game for Android, iOS and maybe Facebook Canvas. There will be some places in my code where I want some different behavior depending on the paltform. How do it recognize what platform I’m currently on?
Just to make simple “if” like this one:
if (platform=="Android")
then
print "Hi Google fans"
else if (platform=="iOS")
print "Hi Apple fans"
else
print "Hi Facebook fans"
end
How can I achieve it? Is there maybe a topic on forum I’ve missed?