we can stick by making file after file, sure. but we wont. here we look at creating entities using for loops.
starting by creating a new project, a new class called 'Block'. we move onto implementing arrays within our project.
we make sure that our array will affect the drawing of it, then move on to make the mouse draw multiple instances of the 'Block' class using the left mouse button.
lastly, we also make sure we can then delete as well using the right mouse button.
snippets link:
https://gist.github.com/lewislepton/808d6d2bef1c1c71cf76
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