evancz / elm-playground

Create pictures, animations, and games with Elm!
https://package.elm-lang.org/packages/evancz/elm-playground/latest/
BSD 3-Clause "New" or "Revised" License
107 stars 17 forks source link

Please add `delta` and `now` functions to make more advanced time-based games #17

Open justgook opened 4 years ago

justgook commented 4 years ago

now there is only spin, wave, and zigzag, but if you would like to make some more advanced games, add physics, animations, particles, you need to know delta from previous frame..

now is needed when you want to create some schedule events, and now we cannot do that as we don't know time what is now, and do that based on counting frames not really good way..

Snaker1 commented 4 years ago

I agree. I just wanted to try this package but had to give up because there is no way to get the delta. I hope this can be implemented soon as this package seems pretty great for learning how to use Elm.

mahidul-islam commented 3 years ago

I agree. I just wanted to try this package but had to give up because there is no way to get the delta. I hope this can be implemented soon as this package seems pretty great for learning how to use Elm.

Hey @Snaker1 I think you can now use this package https://package.elm-lang.org/packages/justgook/webgl-playground/4.1.3/ to have this feature. and start building advance stuff...