Day 14... Two weeks already?
Does time fly when you are having fun? Am I having fun, is there hope and the end of the tunnel, the answers to these questions will be covered in next week's Am I having an existential crisis? Part duex'.
Tonight I was going bail, not a good day in ...
odemac.hashnode.dev2 min read
for i,z in ipairs(zombies) doYou are basically saying for each index and each zombie in the zombies table, run the following code...
Index is the place in the array, zombies[index] will return the value in that table, as an example:
x = {"I", "am", "cool"}If we do
x[2]we will getamfrom the table, sinceamis atindex(place/position) 2 in the tablethe
zrepresents the value itself, take the above example, if we dofor index, word in ipairs(x) do print(index, word) end, we'll get the following output:1 I2 am3 coolIn that order
If you have trouble understanding some topics, getting a tutor might help you a bunch, might make the learning process more fun and encourage more learning