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

    most-eve-98431

    05/27/2023, 9:07 PM
    Damn you're doing a great job then
  • m

    most-eve-98431

    05/27/2023, 9:07 PM
    It looks the same
  • e

    elegant-glass-62997

    05/27/2023, 9:10 PM
    I managed to get the assets of the original game, that's why it looks the same.
  • m

    most-eve-98431

    05/27/2023, 9:10 PM
    No I mean, in terms of gameplay and stuff
  • m

    most-eve-98431

    05/27/2023, 9:10 PM
    "Functionality"
  • e

    elegant-glass-62997

    05/27/2023, 9:13 PM
    I am trying my best...
  • h

    hallowed-ocean-84954

    05/27/2023, 9:29 PM
    Does
    trace(Reflect.field(sprite.shader.data, 'GL_fragColor').value);
    work ? Can you actually get data out of a shader like this - I'm not sure you can with a frag shader - and compute shaders use buffers I think.
  • h

    hallowed-ocean-84954

    05/27/2023, 9:30 PM
    but this prompts me to ask - what are you trying to do ?
  • a

    able-printer-41379

    05/27/2023, 9:36 PM
    challenging myself into trying to interact with shaders through haxe
  • a

    able-printer-41379

    05/27/2023, 9:37 PM
    and yes that does work if GL_fragColor is a uniform
  • a

    able-printer-41379

    05/27/2023, 9:37 PM
    but unfortunately i cannot set uniforms in the
    main
    function in glsl
  • a

    able-printer-41379

    05/27/2023, 9:38 PM
    im new to glsl by the way
  • h

    hallowed-ocean-84954

    05/27/2023, 10:30 PM
    I asked that question badly. I meant can you actually get data out of the shader this way ? It should be impossible. Uniforms are basically constants in GLSL set by the host program and read by the shader code.
  • f

    famous-soccer-17653

    05/27/2023, 10:51 PM
    anyone?
  • a

    ambitious-knife-25690

    05/28/2023, 12:07 AM
    i think this is what you mean

    https://cdn.discordapp.com/attachments/165234904815239168/1112170190340366376/gif.gif▾

  • a

    ambitious-knife-25690

    05/28/2023, 12:07 AM
    here's teh code for it, it's just a quick and simple example https://cdn.discordapp.com/attachments/165234904815239168/1112170324730056816/SimpleSelectorLogic.hx
  • g

    great-oyster-61535

    05/28/2023, 4:01 AM
    The fact i have no idea how this works really tells me my knowledge is rotting
  • e

    elegant-glass-62997

    05/28/2023, 8:38 AM
    Implemented score mechanics! The multiplier score increases with each consecutive killing streak. The longer you maintain your momentum, the higher the multiplier and the more impressive your score becomes.

    https://cdn.discordapp.com/attachments/165234904815239168/1112298831418237059/dojo16.gif▾

  • q

    quiet-student-10808

    05/28/2023, 9:43 AM
    How do you scale a tile map to fit the screen? I am using
    FlxTilemap.loadFrom2DArray()
    to draw 8x8 tiles and that works well but is just too small.
  • b

    better-ability-6982

    05/28/2023, 10:51 AM
    Thanks to everyone for all your help this week! I was able to update my game and get it published to itch.io smoothly. I'm useless without the help of communities like this so I appreciate all the hand-holding, ha ha
  • a

    ambitious-knife-25690

    05/28/2023, 11:06 AM
    basically depending on whether someone presses left or right, we put the last array item at the beginning or the first at the end and recalculate all the positions
  • r

    refined-flag-94330

    05/28/2023, 12:34 PM
    isn't that just middle school math
  • r

    refined-flag-94330

    05/28/2023, 1:18 PM
    added some cool partcles https://cdn.discordapp.com/attachments/165234904815239168/1112369420464050288/Screen_recording_2023-05-27_9.44.29_PM.webm
  • f

    famous-soccer-17653

    05/28/2023, 1:34 PM
    the code here different than what i made
  • f

    famous-soccer-17653

    05/28/2023, 1:34 PM
    that's the code i have
  • m

    mammoth-plastic-35593

    05/28/2023, 2:39 PM
    How big things are 'on screen' is based on your games size (either from project.xml and/or when constricting your
    new FlxGame(...)
    ), or your cameras zoom, or the scale of the thing (
    scale
    property on the sprite/object). A little more context on what you're trying to do can help us give you better suggestions if you have more questions.
  • e

    elegant-glass-62997

    05/28/2023, 4:15 PM
    Yeah, that's what I said.
  • e

    elegant-glass-62997

    05/28/2023, 4:16 PM
    @refined-flag-94330 here
  • a

    able-printer-41379

    05/28/2023, 4:16 PM
    well technically no, because you'd have to set it yourself first
  • m

    most-eve-98431

    05/28/2023, 4:23 PM
    Nice!!
1...98059806980798089809Latest