we need information to pass between classes. we look at static variables.
starting with creating a new project & heading into Main.hx. we create three static variables, for width, height & samples per pixel [anti-alias].
we updated our Main.hx to use these & lastly make sure we can call these up in Project.hx.
more info on static variables:
https://haxe.org/manual/class-field-static.html
source code:
https://github.com/lewislepton/kha-tutorial-series
SUPPORT ON PATREON FROM AS LITTLE AS $1:
https://patreon.com/lewislepton
intro & outro music is from this EP:
https://lewislepton.bandcamp.com/album/coat-noise-ep
like, share & subscribe to stay up to date.
https://lewislepton.com
https://patreon.com/lewislepton
https://twitter.com/lewislepton
https://facebook.com/lewislepton
https://lewislepton.bandcamp.com
https://soundcloud.com/lewislepton
https://github.com/lewislepton