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

    faint-toothbrush-51643

    02/18/2023, 2:08 AM
    yeah
  • g

    gifted-whale-78169

    02/18/2023, 2:30 AM
    alright moved everything to a class
  • g

    gifted-whale-78169

    02/18/2023, 2:31 AM
    gonna wait to see if jeremy knows why the lines are like this
  • f

    faint-toothbrush-51643

    02/18/2023, 2:37 AM
    is that the corner where the line ends and starts?
  • g

    gifted-whale-78169

    02/18/2023, 2:38 AM
    yes
  • f

    faint-toothbrush-51643

    02/18/2023, 2:40 AM
    and it seems to be half the width of the rest
  • g

    gifted-whale-78169

    02/18/2023, 2:41 AM
    yes but how would i increase the thickness of just that one point
  • f

    faint-toothbrush-51643

    02/18/2023, 2:44 AM
    i would mess around and see if there's any possibility that it's not an issue with ceramic
  • f

    faint-toothbrush-51643

    02/18/2023, 2:45 AM
    what happens if you don't duplicate the first point to the end?
  • g

    gifted-whale-78169

    02/18/2023, 4:34 AM
    then the line just doesnt close
  • g

    gifted-whale-78169

    02/18/2023, 4:34 AM
    basing it off of jeremy's ld49, to close it you copy the first coords to the end then enable
    loop
    to make them seem connected
  • g

    gifted-whale-78169

    02/18/2023, 4:36 AM
    a dirty fix would probably be to add the second pair of coords as well, but it would cause overlap
  • g

    gifted-whale-78169

    02/18/2023, 4:37 AM
    yea it does technically make it look even
  • g

    gifted-whale-78169

    02/18/2023, 4:37 AM
    Copy code
    hx
    bdr.points = points.concat([points[0], points[1], points[2], points[3]]);
    //instead of
    bdr.points = points.concat([points[0], points[1]]);
  • b

    billowy-waiter-28954

    02/18/2023, 8:35 AM
    But, why are you changing thickness from 2 to 5? That may be the reason??
  • b

    billowy-waiter-28954

    02/18/2023, 10:50 AM
    By the way, not sure bevel with work with the loop option
  • g

    gifted-whale-78169

    02/18/2023, 2:45 PM
    Because I want the border to be thicker when the mouse is being hovered over it
  • g

    gifted-whale-78169

    02/18/2023, 2:46 PM
    Yea it doesn't, but I think a good workaround right now would be to add the second coords as well, it makes everything look nice and equal
  • b

    billowy-waiter-28954

    02/18/2023, 3:42 PM
    Yes that’s probably the best option to workaround the limitation
  • g

    gifted-whale-78169

    02/18/2023, 8:57 PM
    Copy code
    hx
    var bc = new BaseCode(haxe.io.Bytes.ofString("boZO's cHeAtiNG!"));
  • g

    gifted-whale-78169

    02/18/2023, 9:46 PM
    Copy code
    hx
        static public function stop() {
            fileData = Base64.encode(haxe.io.Bytes.ofString(fileData));
            var bc = new BaseCode(haxe.io.Bytes.ofString("boZO's cHeAtiNG!"));
            fileData = bc.encodeString(fileData);
            Files.saveContent("./data/achievements.achd", fileData);
            log.info("saved achievements");
        }
    any idea why calling this results in
    Failed to decode font data at path: Fonts/AsapItalic-vyzO.fnt
    ?
  • f

    faint-toothbrush-51643

    02/18/2023, 10:07 PM
    why are you using
    Files
    ?
  • f

    faint-toothbrush-51643

    02/18/2023, 10:08 PM
    there's a very high chance that you're looking for this https://ceramic-engine.com/api-docs/ceramic/PersistentData.html
  • g

    gifted-whale-78169

    02/18/2023, 10:58 PM
    for saving the achievements, how does PersistentData work?
  • f

    faint-toothbrush-51643

    02/18/2023, 11:42 PM
    i don't know what you mean by saving the achievements. is this something different from any other way you'd use a save file?
  • f

    faint-toothbrush-51643

    02/18/2023, 11:42 PM
    you just get, set, and save
  • f

    faint-toothbrush-51643

    02/18/2023, 11:42 PM
    it's pretty simple
  • g

    gifted-whale-78169

    02/18/2023, 11:42 PM
    no, im just encoding it and then sending the text to a file
  • g

    gifted-whale-78169

    02/18/2023, 11:43 PM
    whats the difference between just Files and PersistentData though
  • f

    faint-toothbrush-51643

    02/18/2023, 11:43 PM
    PersistentData is made to work on any platform
1...727374...124Latest