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

    miniature-lawyer-98519

    04/16/2023, 4:17 PM
    Maybe Over complicated for the state machine concept u based the impl of begin/update/end
  • m

    miniature-lawyer-98519

    04/16/2023, 4:17 PM
    Or maybe i just got the concept wrong
  • b

    billowy-waiter-28954

    04/16/2023, 4:18 PM
    Well, I'd rather not use a state machine for those keys because for instance a
    justPressed
    key is also a
    pressed
    key at the same time, but can also be
    pressed
    without being
    justPressed
  • m

    miniature-lawyer-98519

    04/16/2023, 4:18 PM
    Yes the states there aren’t exclusive
  • m

    miniature-lawyer-98519

    04/16/2023, 4:19 PM
    Unless the state itself could be a complex value
  • m

    miniature-lawyer-98519

    04/16/2023, 4:19 PM
    Instead of an enum/class
  • m

    miniature-lawyer-98519

    04/16/2023, 4:19 PM
    Like those bit flags
  • m

    miniature-lawyer-98519

    04/16/2023, 4:19 PM
    🤷‍♂️
  • b

    billowy-waiter-28954

    04/16/2023, 4:19 PM
    I prefer to keep that input map implementation specific and keep the state machine api simple
  • m

    miniature-lawyer-98519

    04/16/2023, 4:19 PM
    Im just Overcomplicating the concept for the impl
  • b

    billowy-waiter-28954

    04/16/2023, 4:20 PM
    If two things are different, then better keep them as two different things instead of trying to fit a single shared solution that becomes hell to maintain afterward 😄
  • m

    miniature-lawyer-98519

    04/16/2023, 4:20 PM
    Totally
  • m

    miniature-lawyer-98519

    04/16/2023, 4:20 PM
    Thats why i wanted to learn what was the state machine thingy u mentioned in the lib code a few times
  • b

    billowy-waiter-28954

    04/16/2023, 4:21 PM
    Well, now you know what it's about 🙂
  • m

    miniature-lawyer-98519

    04/16/2023, 4:21 PM
    Indeed 😂
  • m

    miniature-lawyer-98519

    04/16/2023, 4:21 PM
    So thx for taking the time to improve the website
  • b

    billowy-waiter-28954

    04/16/2023, 4:35 PM
    Next guide will be about observables
  • a

    ambitious-knife-25690

    04/16/2023, 4:36 PM
    ultra 7z compressed i can get it down to 166mb 😆
  • a

    ambitious-knife-25690

    04/16/2023, 4:37 PM
    split into 1x100mb and 1x66mb
  • m

    miniature-lawyer-98519

    04/16/2023, 5:56 PM
    i will keep my eye on it
  • b

    billowy-waiter-28954

    04/16/2023, 6:08 PM
    Macros are getting wild there 😆
  • m

    miniature-lawyer-98519

    04/16/2023, 6:32 PM
    Haha
  • m

    miniature-lawyer-98519

    04/16/2023, 6:32 PM
    Too bad for me…
  • m

    miniature-lawyer-98519

    04/16/2023, 6:32 PM
    Macros obsession makes my porting tough
  • b

    billowy-waiter-28954

    04/16/2023, 6:45 PM
    Writing macros is mind-bending, but once they work as expected it’s really like « the compiler is working for you », so in a way it’s more out of laziness that I make them 😄
  • b

    billowy-waiter-28954

    04/16/2023, 6:54 PM
    I guess you probably can « emulate » macros with making your classes inherit from intermediate generated classes
  • b

    billowy-waiter-28954

    04/16/2023, 6:54 PM
    Like if you have Visual extends Entity
  • b

    billowy-waiter-28954

    04/16/2023, 6:55 PM
    Instead write Visual extends Macro_Entity_Visual
  • b

    billowy-waiter-28954

    04/16/2023, 6:56 PM
    That is, Macro_Entity_Visual would contain all the code generated from a Visual class and inerhit from Entity
  • b

    billowy-waiter-28954

    04/16/2023, 6:57 PM
    That’s probably how I would do it in a language that doesn’t support macros
1...107108109...124Latest