Trying to figure out the snowflake PGM
-
A video on you tube :
.... Creates a snowflake, I trying to figure out how to put this in the Fuze PGM code. There arent many books or tutorials for fuze as of yet. This PGM is written Java, but its good. Fuze doesent seem to use Classes...There is also one on fireworks (written in Java). Fuze has a Fireworks PGM, I tried to cross reference them, but it was difficult. This should be easier.... -
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
-
I'll have to go through that video - looks interesting, especially since I'm currently a programmer for my sins.
-
@kendog400 In python you would see class, in lua you would see function setup(), in Fuze just initialize, (I think)...
-
@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!
-
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....
-
Noted. I will be updating the comments in my demo programs in a future update!
-
@kendog400 Did you actually manage to do a snowflake? Would enjoy to see one in FUZE.
-
@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 !
Catalogue link:
https://fuzearena.com/catalogs/view/3912 -
@vinicity amazing, thanks for the hint.
-
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! ❄️