Open getify opened 8 years ago
I'd love to help with this issue. Do you have any guidance on how to start?
This is definitely one of the more challenging of the currently open issues. There are several others, like the localstorage for best scores one, that would be a lot easier to get started with.
That said, here's what I currently know about the issue and is where I'd start, in working on it:
getCloud(..)
.Bird.tick(..)
need to be refactored, probably so that function takes a bird object and updates state on it instead of keeping state internal in the Bird
module.Again, this change is pretty challenging -- but doable I think with the above in mind. Just giving heads up if you're trying to just dip your toe in and not get too deep to start.
I think I'll take your advice and start with an easier issue to start to get a feel of it. Then I would definitely like to tackle this!
@getify I went ahead and attempted an implementation for a new Birds module. I would till need to implement it in the Game module. Let me know what you think so far, commit 4d51882...
currently, the bird is a singleton of sorts because of how the ticks work (meaning multiple birds couldn't be flapping at different intervals). fix this so we can have as many birds as we want.