we can carry on typing & retyping things. so we look at extends & how useful they can be.
we start a new project & create 2 new classes. 'Box' will be certain settings we can then put into 'Player'.
we go into 'Project' & show how we can utilise the extend we have used in 'Player'.
lastly we look a little further & start using 'optional' for our classes & how it can cut down on code setup.
these types of practices can be great to making our game make sense but also to make our own library. so yeah, pretty useful ;)
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