Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Trying to figure out the snowflake PGM

    General Discussion
    6
    11
    548
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pianofire
      pianofire Fuze Team last edited by

      The tutorials and help are all built in but can also be found here https://fuzearena.com/help There is also a pdf version here https://fuzearena.com/forum/topic/394/here-is-a-pdf-version-of-the-fuze-help-please-download-and-let-us-know-what-you-think

      1 Reply Last reply Reply Quote 1
      • Martin
        Martin Fuze Team last edited by

        I'll have to go through that video - looks interesting, especially since I'm currently a programmer for my sins.

        1 Reply Last reply Reply Quote 0
        • K
          kendog400 F @kendog400 last edited by

          @kendog400 In python you would see class, in lua you would see function setup(), in Fuze just initialize, (I think)...

          Dave 1 Reply Last reply Reply Quote 0
          • Dave
            Dave Fuze Team @kendog400 last edited by

            @kendog400 The closest thing to classes in Fuze is structures. An example structure type delcaration:

            struct myStruct
                str name = ""
                int active = 0
                vec pos = {}
                array stats = []
            endstruct
            
            myStruct newArray[10]
            // The array "newArray" has 10 elements, each one a structure with properties as declared in the type definition
            

            To create a function:

            function myFunction( values )
                // stuff you want to do
            return anythingYouWant
            // return void if nothing needs to be returned
            

            Apologies if this isn't helpful @kendog400 - I wasn't sure exactly if this is what you wanted.

            I'm afraid to say that there really isn't an equivalent in Fuze for Classes. However, using a combination of structures and user created functions, I'm sure there will be a way to make what you want to happen!

            1 Reply Last reply Reply Quote 0
            • K
              kendog400 F last edited by

              Very helpful ! Its good to know that computer langagues are evolving and you have to constantly be on top of your game. I would like my own programs to have comments on every line, and every little nick-nack. It would also be good to know where you can change values to have different effects, this would make things more interesting....

              1 Reply Last reply Reply Quote 0
              • Dave
                Dave Fuze Team last edited by

                Noted. I will be updating the comments in my demo programs in a future update!

                1 Reply Last reply Reply Quote 1
                • spikey
                  spikey F @kendog400 last edited by spikey

                  @kendog400 Did you actually manage to do a snowflake? Would enjoy to see one in FUZE.

                  vinicity 1 Reply Last reply Reply Quote 0
                  • vinicity
                    vinicity F @spikey last edited by

                    @spikey said in Trying to figure out the snowflake PGM:

                    @kendog400 Did you actually manage to do a snowflake? Would enjoy to see one in FUZE.

                    Here you go, @spikey !
                    5D5C5C0C-61CE-461C-AE5E-3E3796E4FFF6.jpeg

                    Catalogue link:
                    https://fuzearena.com/catalogs/view/3912

                    spikey 1 Reply Last reply Reply Quote 1
                    • spikey
                      spikey F @vinicity last edited by

                      @vinicity amazing, thanks for the hint.

                      1 Reply Last reply Reply Quote 1
                      • vinicity
                        vinicity F last edited by vinicity

                        It was a fun little project to do!
                        To reflect and transform the image into the snowflake’s arms, I found it easiest to use sprites.

                        The program starts to slow down a lot after a while, but you can’t really tell since the image is rather static. I was thinking of adding a hash table to speed up the collision detection.

                        Instructions: press A to start a new snowflake! ❄️

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post