elm-playground icon indicating copy to clipboard operation
elm-playground copied to clipboard

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

Open justgook opened this issue 4 years ago • 2 comments

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..

justgook avatar Jan 28 '20 13:01 justgook

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.

Snaker1 avatar Jan 28 '20 13:01 Snaker1

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...

mahidul-islam avatar Apr 07 '21 07:04 mahidul-islam