https://linen.dev logo
Join Discord
Powered by
# openfl
  • m

    mysterious-intern-42609

    08/29/2022, 7:22 PM
    https://haxeflixel.com/documentation/upgrade-guide-4-0-0/
  • m

    mysterious-intern-42609

    08/29/2022, 7:22 PM
    I guess this?
  • e

    elegant-twilight-61392

    08/29/2022, 7:23 PM
    you should ask in #165234904815239168 then
  • m

    mysterious-intern-42609

    08/29/2022, 7:23 PM
    k
  • e

    elegant-twilight-61392

    08/29/2022, 7:23 PM
    although i think the format should be the same because flixel is built on top of openfl anyways
  • m

    mysterious-intern-42609

    08/29/2022, 7:24 PM
    Idk
  • m

    mysterious-intern-42609

    08/29/2022, 7:25 PM
    Since the shadertoy code uses void mainImage
  • m

    mysterious-intern-42609

    08/29/2022, 7:25 PM
    And I've not seen that being used in shaders before
  • r

    refined-cat-44047

    08/30/2022, 6:00 AM
    How would I compile to iOS? Does it always output an xcode project, then I have to compile that? So there is no way to do it all on Windows?
  • p

    powerful-morning-89

    08/30/2022, 6:06 AM
    Compiling iOS requires macOS and XCode. Thank Apple for that. (Well, I suppose that you could grap an iOS SDK from the internet somewhere and then use clang, but you'd then have to turn into into an app bundle yourself. And you still need to sign it if you want to run it.)
  • m

    mammoth-engine-80319

    08/30/2022, 6:07 AM
    the only way to build for iOS on windows is through a mac on the cloud
  • m

    mammoth-engine-80319

    08/30/2022, 6:09 AM
    most devs i know get a secondhand or refurbished mac for building if they dont have one already
  • m

    mammoth-engine-80319

    08/30/2022, 6:10 AM
    intel mac minis are probably dirt cheap nowadays'
  • m

    mammoth-engine-80319

    08/30/2022, 6:11 AM
    but you would also need a somewhat recent machine so you can run the latest OS and the latest xcode version
  • m

    mammoth-engine-80319

    08/30/2022, 6:12 AM
    "somewhat recent" in apple land is like 7 years old anyway so most choices should be fine
  • r

    refined-cat-44047

    08/30/2022, 7:15 AM
    Interesting. I mean, for the past 10 years I have build my Adobe AIR apps directly to iOS and MacOS on a Windows machine. So they must have some magic. With my latest project, I decided to abandon ActionScript, and Adobe AIR, and finally go all in on Haxe. I am very happy with this choice, but this is definitely one area I have noticed has a few more hoops to jump through. Still not sad about leaving Adobe though 😉
  • m

    mammoth-engine-80319

    08/30/2022, 7:52 AM
    id like to know how this is possible
  • m

    mammoth-engine-80319

    08/30/2022, 7:52 AM
    i know there are some frameworks that let you create .app files for macOS, but not iOS
  • r

    refined-cat-44047

    08/30/2022, 8:02 AM
    yeah, I am not sure exactly how they do it. But FlashDevelop IDE has an ActionScript AIR template, that sets things up where you can build for iOS. You have to set up your keys etc on a Mac, and I always switch to mac to do the final upload because... well... fighting against Apple with that is a step too far for me. The template contains a bunch of BAT scripts where you configure everything, but it is the AIR SDK that contains the magic of compiling for iOS and MacOS on Windows
  • r

    refined-cat-44047

    08/30/2022, 8:03 AM
    Just thinking about it... the AIR SDK is open source I believe, so it might be interesting to dive in and see how they do it
  • r

    refined-cat-44047

    08/30/2022, 8:04 AM
    or maybe the SDK itself is not open-source. Not sure
  • r

    refined-laptop-39041

    08/30/2022, 11:37 AM
    I am assuming because they are just using a VM that they don't have to compile anything directly to iOS
  • r

    rhythmic-wolf-50922

    08/30/2022, 4:11 PM
    the Flex SDK is open source, but not the AIR SDK. however, you can see which binaries for iOS compiling are in the AIR SDK.
  • r

    rhythmic-wolf-50922

    08/30/2022, 4:14 PM
    I'm pretty sure most of the iOS compiler tooling is fully open source. Adobe basically figured out how to compile it all to work from Windows.
  • r

    rhythmic-wolf-50922

    08/30/2022, 4:14 PM
    no VMs required
  • r

    rhythmic-wolf-50922

    08/30/2022, 4:16 PM
    the difference is that Adobe was willing to stand up to Apple legal. other companies don't want to ruffle any feathers, so they make you build on macOS.
  • a

    able-printer-41379

    08/30/2022, 9:19 PM
    can you get a json file content anywhere in your desktop (outside the folder the exe is on) like openfl.media.Sound.fromFile();
  • g

    green-thailand-63253

    08/31/2022, 5:30 PM
    hello
  • g

    green-thailand-63253

    08/31/2022, 5:30 PM
    does BitmapData have a function to encode to image file
  • r

    rhythmic-wolf-50922

    08/31/2022, 5:31 PM
    https://api.openfl.org/openfl/display/BitmapData.html#encode
1...111213...57Latest