Hello everyone,
I am trying to learn to use types to make my game design more structured. However, I don't understand how they work. Can someone tell me why this code doesn't work? All I want is to be able to access the data within a type variable. The tutorial included in the IDE says this is how it's done, unless I am misunderstanding it.
I am trying to learn to use types to make my game design more structured. However, I don't understand how they work. Can someone tell me why this code doesn't work? All I want is to be able to access the data within a type variable. The tutorial included in the IDE says this is how it's done, unless I am misunderstanding it.
AppTitle "Types Test" Type player Field name Field x Field y Field lives Field bullets_left End Type p.player = New player p.player\name="John" p.player\x=10 p.player\y=20 p.player\lives=5 Print p.player\name WaitKey End