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

    miniature-lawyer-98519

    02/13/2023, 2:50 PM
    do u guys have any nice format convention for "toString()" ?
  • b

    billowy-waiter-28954

    02/13/2023, 3:49 PM
    Mmmmh not really, that's an eternal struggle actually
  • m

    miniature-lawyer-98519

    02/13/2023, 3:50 PM
    now a days who's winning ?
  • m

    miniature-lawyer-98519

    02/13/2023, 3:50 PM
    the weird generic output or some custom debug info from ceramic ?
  • b

    billowy-waiter-28954

    02/13/2023, 3:58 PM
    In ceramic I came up with
    TypeName(some more info)
    format but that's not implemented consistently everywhere in the code base
  • m

    miniature-lawyer-98519

    02/13/2023, 4:19 PM
    so for ex, Point becomes...
  • m

    miniature-lawyer-98519

    02/13/2023, 4:19 PM
    Point(0,0)
    or
    Point( x: 0, y: 0);
    ?
  • g

    gifted-whale-78169

    02/13/2023, 4:19 PM
    Why did you not use an arcade library already made for haxe like echo?
  • b

    billowy-waiter-28954

    02/13/2023, 4:25 PM
    echo is doing much more than what is done by arcade
  • b

    billowy-waiter-28954

    02/13/2023, 4:26 PM
    I wanted a very lightweight option that could be enabled to provide additional properties to visuals like mass, velocity, gravity... with a very low memory/cpu footprint
  • b

    billowy-waiter-28954

    02/13/2023, 4:27 PM
    That said it would be nice to have an
    echo
    plugin for Ceramic, but I don't personally need it so no plan to implement that
  • m

    miniature-lawyer-98519

    02/13/2023, 4:30 PM
    @billowy-waiter-28954 ... maybe u remember, as u didnt add "types" into the
    SortBodiesX
    API ...
  • m

    miniature-lawyer-98519

    02/13/2023, 4:32 PM
    by any chance do u have a type definition in docs ?
  • m

    miniature-lawyer-98519

    02/13/2023, 4:33 PM
    like in SortBodiesLeftRight
    Copy code
    dart
    int cmp(Body a, Body b);
    
    void sort(List<Body> a);
    
    void rec(List<Body> a, int from, int to);
    
    void doMerge(List<Body> a, int from, int pivot, int to, int len1, int len2)
    
    void rotate(List<Body> a, int from, int mid, int to)
    
    int gcd(int m, int n)
    
    int upper(List<Body> a, int from, int to, int val)
    
    int lower(List<Body> a, int from, int to, int val)
    
    void swap(List<Body> a, int i, int j)
  • m

    miniature-lawyer-98519

    02/13/2023, 4:33 PM
    i'm just assuming integers all over, but I doubt
    rotate()
    takes that value
  • g

    gifted-whale-78169

    02/13/2023, 4:40 PM
    Really? From what I've seen it has pretty much the same stuff as phasers arcade system
  • b

    billowy-waiter-28954

    02/13/2023, 4:47 PM
    Arcade is only handling AABB collisions and circle collisions, nothing very fancy, but also very fast and lightweight, and enough in many situations
  • g

    gifted-whale-78169

    02/13/2023, 4:47 PM
    true
  • b

    billowy-waiter-28954

    02/13/2023, 8:38 PM
    I’m not sure I understand your question. The whole codebase is typed 🧐. These SortBodiesX classes are alternative implementations to haxe’s default array sort() that take a dynamic callback as comparison function
  • b

    billowy-waiter-28954

    02/13/2023, 8:38 PM
    This is mostly an optim to take advantage of inlining and remove any dynamic access
  • b

    billowy-waiter-28954

    02/13/2023, 8:38 PM
    Not sure that is necessary in Dart
  • m

    miniature-lawyer-98519

    02/13/2023, 8:42 PM
    Ok
  • g

    gifted-whale-78169

    02/15/2023, 12:11 AM
    is it possible to move assets to subfolders and still access them?
  • g

    gifted-whale-78169

    02/15/2023, 12:12 AM
    oh i guess i answered my own question
  • g

    gifted-whale-78169

    02/15/2023, 12:13 AM
    thats neat
  • g

    gifted-whale-78169

    02/15/2023, 12:13 AM
    i gotta remember that
  • g

    gifted-whale-78169

    02/15/2023, 2:16 AM
    making some stuff, idk what
  • b

    billowy-waiter-28954

    02/15/2023, 8:55 AM
    Idk either but keep going 😄
  • g

    gifted-whale-78169

    02/15/2023, 3:08 PM
    Do desktop builds compile with hxcpp? I'm wondering if I could add rich presence to a game through the gamesdk
  • a

    ambitious-knife-25690

    02/15/2023, 3:17 PM
    yeah
1...676869...124Latest