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

    ambitious-knife-25690

    01/19/2023, 7:05 PM
    jeremy, what's your intention behind the
    app.scenes.set
    api?
  • a

    ambitious-knife-25690

    01/19/2023, 7:07 PM
    scene's are visuals, so i guess, you can treat a scene like pretty much like a rendering canvas?
  • a

    ambitious-knife-25690

    01/19/2023, 7:08 PM
    i just assumed such a feature would be for a camera, but i guess in ceramic it makes more sense to just have a separate scene
  • b

    billowy-waiter-28954

    01/19/2023, 9:10 PM
    @ambitious-knife-25690
    app.scenes.set
    is useful if you want to stack multiple fullscreen scenes on top of another (you set the depth of the scenes accordingly to decide which is in front)
  • b

    billowy-waiter-28954

    01/19/2023, 9:13 PM
    And yes, a scene is mostly a visual that has a few additions: a lifecycle (preload/create/update), a fade in/out mechanic and the possibility to assign a
    Filter
    to the
    scenes.filter
    to apply a fullscreen effect
  • b

    billowy-waiter-28954

    01/19/2023, 9:13 PM
    There is a
    Camera
    class in Ceramic, but it is more a tool to track player position and calculate the position of the content in which the player is
  • a

    ambitious-knife-25690

    01/19/2023, 9:14 PM
    ahh alright, that makes sense
  • a

    ambitious-knife-25690

    01/19/2023, 9:14 PM
    is there anything special about ceramic's
    update
    loop?
  • a

    ambitious-knife-25690

    01/19/2023, 9:15 PM
    it seems like when I try to set
    app.scenes.main
    from aidan's ecs, ceramic doesn't draw anything on screen
  • a

    ambitious-knife-25690

    01/19/2023, 9:16 PM
    the scene doesn't seem to start for some reason (no breakpoints or traces get called)
  • a

    ambitious-knife-25690

    01/19/2023, 9:16 PM
    I'm accessing
    app
    via
    App.app
    maybe that's why?
  • b

    billowy-waiter-28954

    01/19/2023, 9:18 PM
    simply
    app
    should work (because
    ceramic.Shortcuts.*
    is imported everywhere in the project
  • a

    ambitious-knife-25690

    01/19/2023, 9:20 PM
    yeah, i'm not sure what's going on here
  • a

    ambitious-knife-25690

    01/19/2023, 9:21 PM
    I can't seem to get a scene to render in this way
  • b

    billowy-waiter-28954

    01/19/2023, 9:22 PM
    I don't know how aidan's ecs work so can't say in that situation, but normally, as soon a a scene object is created and assigned to the scene sysstem, it should boot (call preload, then create etc...)
  • a

    ambitious-knife-25690

    01/19/2023, 9:23 PM
    that's what i thought, but in this case setting
    scenes.main
    here doesn't call preload etc
  • a

    ambitious-knife-25690

    01/19/2023, 9:23 PM
    calling
    App.app
    in
    Project.hx
    works tho, so i'm confused
  • a

    ambitious-knife-25690

    01/19/2023, 9:24 PM
    odd πŸ˜•
  • a

    ambitious-knife-25690

    01/19/2023, 9:32 PM
    ahh lol, bad code nvm
  • a

    ambitious-knife-25690

    01/19/2023, 9:33 PM
    i had a class field called
    active
    as well as a local var
    active
  • a

    ambitious-knife-25690

    01/19/2023, 9:33 PM
    so main was getting set to
    null
  • b

    billowy-waiter-28954

    01/19/2023, 9:35 PM
    😬
  • a

    ambitious-knife-25690

    01/19/2023, 11:26 PM
    Logger
    does not appear to be a part of the online api
  • a

    ambitious-knife-25690

    01/19/2023, 11:33 PM
    Ah, it's okay I shadowed
    Log.hx
  • a

    ambitious-knife-25690

    01/19/2023, 11:34 PM
    I wanted to switch from file path to class name to avoid taking up the entire debug console line
  • a

    ambitious-knife-25690

    01/20/2023, 12:21 AM
    what is the purpose of this field? πŸ€”
  • a

    ambitious-knife-25690

    01/20/2023, 12:22 AM
    is it internal or can i use it? It's dynamic πŸ‘€
  • f

    faint-toothbrush-51643

    01/20/2023, 3:40 AM
    So what's up with the fonts?
  • f

    faint-toothbrush-51643

    01/20/2023, 3:53 AM
    how could i make one of those font files that ceramic uses without the excruciating agony of trying to make an actual font on windows?
  • b

    billowy-waiter-28954

    01/20/2023, 8:27 AM
    You can use it, it’s provided to attach user-defined data to entities
1...404142...124Latest