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

    billowy-waiter-28954

    12/02/2022, 10:41 AM
    Ah yes, a lot of things. Feel free to ask if you wonder about one of these specifically
  • f

    fresh-finland-97755

    12/02/2022, 12:04 PM
    Is there a way to change the color of particular pixels on a visual? I want to be able to do a palette swap on multiple colors in a pixel art sprite.
  • f

    fresh-finland-97755

    12/02/2022, 12:08 PM
    I noticed the tinting example where you tinted both the main color and the darkColor values?
  • f

    fresh-finland-97755

    12/02/2022, 12:13 PM
    In my phaser code at runtime I had to iterate over the textures used to draw my sprites and recolor the pixels, then add the colored versions into the phaser asset cache to switch between them, but I would much prefer to do this in a better way.
  • b

    billowy-waiter-28954

    12/02/2022, 4:37 PM
    Several ways of doing that: - You can fetch pixels of a texture and edit the data manually (the
    Pixels
    class has a bunch of helpers that can be useful for that), and then you submit the pixels again to the texture - You can use a shader to change pixels via GPU. Yes the dual tint is allowing to tint dark colors with a different color than light colors, the ceramic demo project has some code that does that indeed
  • f

    faint-toothbrush-51643

    12/02/2022, 4:47 PM
    oh i did something just like that, but not for pixel art
  • f

    faint-toothbrush-51643

    12/02/2022, 4:50 PM
    uncolored
  • b

    billowy-waiter-28954

    12/04/2022, 5:00 PM
    SpriteSheet
    or
    Spritesheet
    ? 🤔
  • f

    faint-toothbrush-51643

    12/04/2022, 5:55 PM
    don't we already have
    TextureAtlas
    ?
  • b

    billowy-waiter-28954

    12/04/2022, 5:55 PM
    Not the same thing
  • b

    billowy-waiter-28954

    12/04/2022, 5:55 PM
    In Ceramic a sprite sheet can have animations
  • b

    billowy-waiter-28954

    12/04/2022, 5:55 PM
    an atlas is just the texture with regions
  • b

    billowy-waiter-28954

    12/04/2022, 5:56 PM
    (the
    SpriteSheet
    class is already there in the sprite plugin btw)
  • f

    faint-toothbrush-51643

    12/04/2022, 5:56 PM
    what does flixel call it?
  • b

    billowy-waiter-28954

    12/04/2022, 5:56 PM
    I don't know
  • b

    billowy-waiter-28954

    12/04/2022, 5:56 PM
    FlxSpritesheet I guess xD
  • b

    billowy-waiter-28954

    12/04/2022, 5:57 PM
    (for now I'm going with
    SpriteSheet
    because that's already how I started)
  • f

    faint-toothbrush-51643

    12/04/2022, 5:58 PM
    i would go with
    Spritesheet
    because i think of it as one word
  • l

    late-exabyte-70980

    12/05/2022, 12:11 AM
    Hello! Quick question. Does Ceramic assume always the existence of a Project.hx file and invoke its new constructor? That is, the point of entry is always a file class named Project.hx, right? Does this have to be an entity as well? Or can this be something else (i.e. another name or not inherit from Entity) that invoke a constructor to an entity? Not that I plan to do this, but I'd like to understand the general flow for init a game from the start...
  • a

    ambitious-knife-25690

    12/05/2022, 12:29 AM
    it does look like that, yeah
  • a

    ambitious-knife-25690

    12/05/2022, 12:30 AM
    haxe apps need a defined entry point
  • a

    ambitious-knife-25690

    12/05/2022, 12:30 AM
    Project.hx looks like that for ceramic
  • f

    fresh-finland-97755

    12/05/2022, 5:57 AM
    Anyone know how I would debug a ceramic application? Like can I debug it with breakpoints using vshaxe or can the web target be debugged with the electron chrome debug console?
  • f

    faint-toothbrush-51643

    12/05/2022, 7:54 AM
    i just make extensive use of log functions
  • b

    billowy-waiter-28954

    12/05/2022, 8:10 AM
    You can use chrome debug yes, from within vscode, when you use web target
  • b

    billowy-waiter-28954

    12/05/2022, 8:12 AM
    I never used hxcpp debugger on native targets. Instead I debug using xcode directly (on mac) or visual studio (on windows)
  • b

    billowy-waiter-28954

    12/05/2022, 8:13 AM
    Yes, Project.hx is the entry point of ceramic and is expected to be there by Ceramic
  • b

    billowy-waiter-28954

    12/05/2022, 8:13 AM
    The « real » main is located in the backend and not exposed directly because that’s backend/platform specific
  • f

    fresh-finland-97755

    12/05/2022, 8:25 AM
    Do all assets get added to memory from the assets directory at startup?
  • f

    fresh-finland-97755

    12/05/2022, 8:37 AM
    Btw, the vscode debugging worked after I figured out I needed the --debug variant enabled.
1...272829...124Latest