https://linen.dev logo
Join Discord
Powered by
# ceramic
  • f

    faint-toothbrush-51643

    09/19/2022, 9:48 PM
    are my main ponderances at this point
  • b

    billowy-waiter-28954

    09/19/2022, 10:16 PM
    You need to override fadeIn() and fadeOut() in your scenes classes
  • b

    billowy-waiter-28954

    09/19/2022, 10:20 PM
    by default, when you replace a scene, it will wait until the new scene preload has finished, then call
    fadeOut(cb)
    of the previous scene and
    fadeIn(cb)
    of the new scene at the same time.
  • b

    billowy-waiter-28954

    09/19/2022, 10:21 PM
    So you can do whatever transition code you need on both the previous and the new scene
  • f

    faint-toothbrush-51643

    09/19/2022, 11:39 PM
    what if i wanted to have a loading screen? so the current scene starts fading to the loading screen immediately when the switch is called, then the loading screen fades into the next scene when it's done loading
  • b

    billowy-waiter-28954

    09/20/2022, 8:36 AM
    Then in that case you display the loading screen independently on top of the rest, like:
    app.scenes.set('loading', loadingScene);
  • b

    billowy-waiter-28954

    09/20/2022, 8:36 AM
    (and set depth accordingly)
  • b

    billowy-waiter-28954

    09/20/2022, 8:37 AM
    You can now when a scene has finished loading with it's
    status
    property
  • b

    billowy-waiter-28954

    09/20/2022, 8:37 AM
    (and
    onStatusChange
    event)
  • g

    gifted-whale-78169

    09/20/2022, 9:53 PM
    just started looking at the platformer example, what does the
    component
    metadata do?
  • g

    gifted-whale-78169

    09/20/2022, 9:59 PM
    and also, why is there no documentation for InputMaps?
  • b

    billowy-waiter-28954

    09/21/2022, 4:48 PM
    It's a way to assign a
    Component
    object to an
    Entity
    (Player is an Entity)
  • b

    billowy-waiter-28954

    09/21/2022, 4:49 PM
    The entity-component system of Ceramic deserve its own guide/article, which I haven't written already
  • b

    billowy-waiter-28954

    09/21/2022, 4:50 PM
    And regarding no doc for InputMap, well I'll look into it 😆
  • f

    faint-toothbrush-51643

    09/21/2022, 5:34 PM
    i realize that a NineSlice but repeated (like I mentioned earlier) would be useful to both me and Ceramic
  • f

    faint-toothbrush-51643

    09/21/2022, 5:34 PM
    Could I try making one and add it to Ceramic with a pull request?
  • f

    faint-toothbrush-51643

    09/21/2022, 5:35 PM
    Although I'm not very familiar with git, I'm not sure how exactly I'd do that
  • e

    elegant-twilight-61392

    09/21/2022, 5:35 PM
    fork, clone your fork, make changes, push, make pr
  • g

    gifted-whale-78169

    09/21/2022, 6:00 PM
    Ok, thanks
  • f

    faint-toothbrush-51643

    09/21/2022, 9:12 PM
    @billowy-waiter-28954 I've made an alternate version of NineSlice called NineSliceRepeat which repeats the edges and center instead of just stretching them. What do you think? Is it worth a pull request?
  • f

    faint-toothbrush-51643

    09/21/2022, 9:50 PM
    i take that back. i tried it in my own project and i think it needs a bit more refinement
  • b

    billowy-waiter-28954

    09/21/2022, 9:53 PM
    I’ll add the tiled option to the existing NineSlice eventually, like in gamemaker
  • b

    billowy-waiter-28954

    09/21/2022, 9:54 PM
    Your implementation is a bit different because it seems to be a mix of tiling and scaling to make the number of tiles round
  • f

    faint-toothbrush-51643

    09/21/2022, 9:55 PM
    that's the way i would want it to be
  • f

    faint-toothbrush-51643

    09/21/2022, 9:56 PM
    if the number you give lets it do it evenly, it will
  • f

    faint-toothbrush-51643

    09/21/2022, 9:56 PM
    how would you do it?
  • b

    billowy-waiter-28954

    09/21/2022, 9:58 PM
    If the width is not matching exactly a number of tiles, complete with a cropped tile, that’s how gamemaker does it so far. A tile is never scaled (because that would be an issue with pixel perfect rendering etc…)
  • e

    elegant-twilight-61392

    09/21/2022, 9:59 PM
    a scaled option sounds like a good idea though
  • e

    elegant-twilight-61392

    09/21/2022, 9:59 PM
    as in have both
  • f

    faint-toothbrush-51643

    09/21/2022, 10:02 PM
    i could see either cropping or stretching being better depending on what you're doing
1...192021...124Latest