https://linen.dev logo
Join Discord
Powered by
# ceramic
  • i mean, if u still wanna use the "name" u could ... to get a specific instance.
    m

    miniature-lawyer-98519

    03/29/2023, 9:43 PM
    i mean, if u still wanna use the "name" u could ... to get a specific instance.
  • but yeah i bet that would require a deeper change in the codebase.
    m

    miniature-lawyer-98519

    03/29/2023, 9:43 PM
    but yeah i bet that would require a deeper change in the codebase.
  • i'm still unsure on how to approach Component on my end.
    m

    miniature-lawyer-98519

    03/29/2023, 9:45 PM
    i'm still unsure on how to approach Component on my end.
  • had to make much mess to get the type in place for those events.
    m

    miniature-lawyer-98519

    03/29/2023, 9:46 PM
    had to make much mess to get the type in place for those events.

    https://cdn.discordapp.com/attachments/853414608747364352/1090753825004064949/Screenshot_2023-03-30_at_00.46.03.png▾

  • ah, no u take the class name to add multiple components of the same instance... so the change shouldn't be hard on ceramic
    m

    miniature-lawyer-98519

    03/29/2023, 9:47 PM
    ah, no u take the class name to add multiple components of the same instance... so the change shouldn't be hard on ceramic
  • is there a function of the scene that gets called when the fadein is finished?
    f

    faint-toothbrush-51643

    03/29/2023, 9:49 PM
    is there a function of the scene that gets called when the fadein is finished?
  • or would i have to do that myself?
    f

    faint-toothbrush-51643

    03/29/2023, 9:50 PM
    or would i have to do that myself?
  • <@374925643990695937> might not apply to Haxe but when u make the interface for `Component`... (in my case i made a class). Can't u infer as well the entity type ? ```dart abstract class Component<T extends Entity> extends Entity { late T? entity; @protected void bindAsComponent(); } ```
    m

    miniature-lawyer-98519

    03/29/2023, 9:52 PM
    @billowy-waiter-28954 might not apply to Haxe but when u make the interface for
    Component
    ... (in my case i made a class). Can't u infer as well the entity type ?
    Copy code
    dart
    abstract class Component<T extends Entity> extends Entity {
      late T? entity;
      @protected
      void bindAsComponent();
    }
  • ```dart class Click extends Component<Visual> { @override void bindAsComponent() { entity.onPress(this, bla); } } ```
    m

    miniature-lawyer-98519

    03/29/2023, 9:53 PM
    Copy code
    dart
    class Click extends Component<Visual> {
      @override
      void bindAsComponent() {
        entity.onPress(this, bla);
      }
    }
  • No, because the entity type depends on which entity the component is bound to at runtime
    b

    billowy-waiter-28954

    03/29/2023, 9:55 PM
    No, because the entity type depends on which entity the component is bound to at runtime
  • I made an entity mixin for that...
    m

    miniature-lawyer-98519

    03/29/2023, 10:02 PM
    I made an entity mixin for that...
  • ```dart if (inputs.keyPressed(KeyCode.arrowLeft)) { posX -= 100 * delta; } else if (inputs.keyPressed(KeyCode.arrowRight)) { posX += 100 * delta; } if (inputs.keyPressed(KeyCode.arrowUp)) { posY -= 100 * delta; } else if (inputs.keyPressed(KeyCode.arrowDown)) { posY += 100 * delta; } if (inputs.keyJustPressed(KeyCode.space)) { scale *= 1.25; } ctx.fillStyle = Colors.red; ctx.fillRect(posX, posY, 100 * scale, 100 * scale); ``` keyboard input in 😛
    m

    miniature-lawyer-98519

    03/29/2023, 10:47 PM
    Copy code
    dart
    if (inputs.keyPressed(KeyCode.arrowLeft)) {
      posX -= 100 * delta;
    } else if (inputs.keyPressed(KeyCode.arrowRight)) {
      posX += 100 * delta;
    }
    if (inputs.keyPressed(KeyCode.arrowUp)) {
      posY -= 100 * delta;
    } else if (inputs.keyPressed(KeyCode.arrowDown)) {
      posY += 100 * delta;
    }
    if (inputs.keyJustPressed(KeyCode.space)) {
      scale *= 1.25;
    }
    
    ctx.fillStyle = Colors.red;
    ctx.fillRect(posX, posY, 100 * scale, 100 * scale);
    keyboard input in 😛
  • sad...
    m

    miniature-lawyer-98519

    03/29/2023, 10:47 PM
    sad...
  • https://fxtwitter.com/jeremyfaivre/status/1644448029418614786 (sample project for this on ceramic website _soon_)
    b

    billowy-waiter-28954

    04/07/2023, 9:34 PM
    https://fxtwitter.com/jeremyfaivre/status/1644448029418614786 (sample project for this on ceramic website soon)
  • I've read in haxe 4.3 changelog that autocompletion performance has been improved. Let's see how it improves it in Ceramic
    b

    billowy-waiter-28954

    04/08/2023, 10:13 AM
    I've read in haxe 4.3 changelog that autocompletion performance has been improved. Let's see how it improves it in Ceramic
  • !mention <@&914171888748609546> With a new version of Haxe come a new version of Ceramic
    b

    billowy-waiter-28954

    04/10/2023, 5:30 PM
    !mention @User With a new version of Haxe come a new version of Ceramic
  • https://github.com/ceramic-engine/ceramic/releases/tag/v1.1.0
    b

    billowy-waiter-28954

    04/10/2023, 5:30 PM
    https://github.com/ceramic-engine/ceramic/releases/tag/v1.1.0
  • oh cool
    f

    faint-toothbrush-51643

    04/10/2023, 6:10 PM
    oh cool
  • Ceramic website has also been updated with a new guide about Filters: https://ceramic-engine.com/guides/filters/
    b

    billowy-waiter-28954

    04/10/2023, 6:18 PM
    Ceramic website has also been updated with a new guide about Filters: https://ceramic-engine.com/guides/filters/
  • And 2 new samples:
    b

    billowy-waiter-28954

    04/10/2023, 6:18 PM
    And 2 new samples:
  • https://ceramic-engine.com/examples/gaussian-blur/
    b

    billowy-waiter-28954

    04/10/2023, 6:18 PM
    https://ceramic-engine.com/examples/gaussian-blur/
  • https://ceramic-engine.com/examples/immediate-gui/
    b

    billowy-waiter-28954

    04/10/2023, 6:19 PM
    https://ceramic-engine.com/examples/immediate-gui/
  • Kudos on the release <@374925643990695937>
    m

    miniature-lawyer-98519

    04/12/2023, 9:36 AM
    Kudos on the release @billowy-waiter-28954
  • m

    mammoth-engine-80319

    04/13/2023, 9:49 PM
    is there a quick way to debug ceramic mobile builds? It doesn’t look like AIR is a target which would be my default
  • m

    mammoth-engine-80319

    04/13/2023, 9:49 PM
    judging by the targets available in the command line
  • b

    billowy-waiter-28954

    04/13/2023, 10:14 PM
    You can debug using Android Studio / Xcode directly on the projects exported by Ceramic
  • b

    billowy-waiter-28954

    04/14/2023, 4:45 PM
    One more guide about Scenes https://ceramic-engine.com/guides/scenes/
  • b

    billowy-waiter-28954

    04/14/2023, 4:45 PM

    https://cdn.discordapp.com/attachments/853414608747364352/1096476430713487520/scenes-schema.png▾

  • a

    aloof-glass-16798

    04/15/2023, 2:56 AM
    Wow Your Engine is Improving at an extremely rapid rate
  • b

    blue-lizard-2018

    04/16/2023, 8:58 AM
    How much data would it take to download ceramic? (Im on limited internet and want to try ceramic again)
1...105106107...124Latest