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

    late-australia-6304

    03/17/2023, 7:51 PM
    man i really need to find a way to port unreal engine into openfl
  • h

    hallowed-ocean-84954

    03/17/2023, 9:52 PM
    ?? Unreal is proprietary and a full engine and er why ? What are you trying to do ?
  • l

    late-australia-6304

    03/18/2023, 12:29 AM
    This is absurd how am i going to carry out my master plan
  • l

    late-australia-6304

    03/18/2023, 12:30 AM
    i need to embed a live linux kernel into haxe
  • b

    boundless-address-73873

    03/18/2023, 2:24 PM
    Copy code
    haxe
    public function effect(sprite:Sprite) {
      var mat1 = new Matrix();
      mat1.identity();
      mat1.scale(zoom, zoom);
      mat1.translate(openfl.Lib.current.stage.stageWidth / 2 - this.position.x,   openfl.Lib.current.stage.stageHeight / 2 - this.position.y);
      sprite.transform.matrix = mat1;
    }
    I added this function to my camera class. I fix the camera position to my character. I am entering map and map objects into this function. I noticed that map objects flicker as the character moves. Why could this be?
  • h

    hallowed-ocean-84954

    03/18/2023, 3:18 PM
    You wouldn't be likely to put a linux kernel inside Haxe itself - not sure what that would actually mean tbh. You might embed one in something produced in Haxe but even there not sure why unless you were writing an OS in Haxe.
  • a

    able-action-74275

    03/18/2023, 3:19 PM
    fairly sure roblox was trolling
  • h

    hallowed-ocean-84954

    03/18/2023, 3:25 PM
    that would certainly make more sense
  • b

    boundless-address-73873

    03/18/2023, 3:27 PM
    could pixelsnapping have something to do with it?
  • c

    calm-horse-72201

    03/18/2023, 8:48 PM
    Do any of you think OpenFL/Lime will eventually add built-in support for WebP and WebM?
  • d

    damp-artist-60225

    03/20/2023, 9:30 AM
    I'm trying to include Google Sign-in for my html5 game. But it seems from the documentation (https://developers.google.com/identity/gsi/web/guides/integrate#button_customization) that an html button is needed for this. Is there any way I can do this with OpenFL?
  • i

    icy-zebra-52882

    03/20/2023, 11:39 AM
    given that it renders the button into the HTML DOM tree from google's own account servers (so the sites using it can't snoop on the information being trasmitted), it's unlikely I'd say
  • i

    icy-zebra-52882

    03/20/2023, 11:41 AM
    you'd maybe have to have a button on the page, outside of the game/app, and try to access the API from openFL with JS, but I've no experience with that kind of thing
  • d

    damp-artist-60225

    03/20/2023, 1:48 PM
    I see. Having it outside the game isn't an option since I want the game to be on other sites...
  • d

    damp-artist-60225

    03/20/2023, 1:51 PM
    It's too bad if it isn't possible, people nowadays don't have much patience for the whole create username, password, verify email method
  • t

    tall-teacher-57409

    03/20/2023, 1:51 PM
    true
  • a

    ambitious-knife-25690

    03/20/2023, 1:52 PM
    you can just call the things from js
  • a

    ambitious-knife-25690

    03/20/2023, 1:53 PM
    what you would want to do is just open the sign in a popup (part of the sign in api) and parse the response token
  • d

    damp-artist-60225

    03/20/2023, 1:54 PM
    from what I understood, it's not possible to call things directly with js anymore, that api is deprecated and not allowed anymore
  • a

    ambitious-knife-25690

    03/20/2023, 1:55 PM
    Hmm, i haven't used the api in a little while so i may be a bit out of touch
  • a

    ambitious-knife-25690

    03/20/2023, 1:55 PM
    but you can call an api that displays the sign in button
  • a

    ambitious-knife-25690

    03/20/2023, 1:55 PM
    at least in the past
  • a

    ambitious-knife-25690

    03/20/2023, 1:56 PM
    if you can't i don't think that's much of an issue, you can still manipu/ate the dom like bloodninja suggested from openfl/haxe
  • a

    ambitious-knife-25690

    03/20/2023, 1:57 PM
    think of haxe -> openfl target like haxe is targeting canvas, rather than openfl as its "own seperate thing"
  • a

    ambitious-knife-25690

    03/20/2023, 1:57 PM
    you have full control of the webpage from haxe with js like you would in a regular js application
  • d

    damp-artist-60225

    03/20/2023, 2:00 PM
    that sounds like a potential solution... so I'm guessing I'd try something like
    Syntax.code("js.Browser.document.createElement('div');)'
    ...?
  • a

    ambitious-knife-25690

    03/20/2023, 2:00 PM
    nono
  • d

    damp-artist-60225

    03/20/2023, 2:00 PM
    I don't really have much experience with this kind of thing 😅
  • a

    ambitious-knife-25690

    03/20/2023, 2:00 PM
    js is all a part of the std 😉
  • a

    ambitious-knife-25690

    03/20/2023, 2:00 PM
    no need to be dynamic about it
1...454647...57Latest