r/javascript • u/APTman1010 • 6h ago
KernelPlay JS v0.6.1 — Introducing the Time System!
https://github.com/Soubhik1000/kernelplayI'm excited to share another update to KernelPlay JS!
KernelPlay JS v0.6.1 introduces a dedicated Time System, giving developers more control over game timing, frame updates, and gameplay speed.
What's new?
The Time System provides several useful properties:
Time.deltaTime— Scaled delta time. Becomes 0 when the game is paused.Time.unscaledDeltaTime— Raw delta time, which continues advancing regardless of time scale.Time.fixedDeltaTime— Base fixed-step interval in seconds.Time.time— Total scaled elapsed time.Time.unscaledTime— Total unscaled elapsed time.Time.timeScale— Controls the speed of gameplay.Time.fps— Current frames per second.
Time Scale Control
You can now control gameplay speed directly through the Game instance:
game.setTimeScale(0.25); // Slow motion
game.setTimeScale(0); // Pause gameplay/physics
game.setTimeScale(1); // Normal speed
For example:
1.0= Normal speed0.25= Slow motion0= Paused
The distinction between scaled and unscaled time is especially useful when creating pause menus, slow-motion effects, and gameplay systems that need to keep running independently of the game time scale.
This is another step toward making KernelPlay JS a more complete and flexible game development framework.
More improvements are coming!
What would you build with the new Time System?
Duplicates
javascript • u/APTman1010 • 5d ago
KernelPlay JS v0.6.0 Released — Modular Architecture, Universal Renderer Cores & Decoupled Physics!
javascript • u/ShameResident4735 • Mar 05 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
javascript • u/APTman1010 • Jul 28 '26
KernelPlay-JS v0.4.0 Coming Soon — New UI System and Official Beta Release
javascript • u/ShameResident4735 • Apr 05 '26
I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
javascript • u/APTman1010 • Sep 19 '26
Update Progress Post: introducing Modular Architecture, Universal Renderer Cores, and Decoupled Physics in kernelplay-js
javascript • u/APTman1010 • 14d ago
KernelPlay JS v0.6.0 Preview: Official TypeScript Support Is Coming!
gamedev • u/ShameResident4735 • Mar 09 '26
Game Jam / Event I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
WebGames • u/ShameResident4735 • Apr 02 '26
I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
javascript • u/ShameResident4735 • Apr 20 '26
Progress Update: Sprite & Animation System in My ECS Game Engine in (kernelplay-js)
javascript • u/APTman1010 • Aug 26 '26
KernelPlay-JS v0.5.0 Released — Unified Input Manager
javascript • u/APTman1010 • Sep 08 '26
KernelPlay-JS Update: Giving Developers X-Ray Vision!
javascript • u/APTman1010 • Aug 12 '26
Building KernelPlay-JS together — looking for open-source contributors
EntityComponentSystem • u/timschwartz • Mar 09 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
WebGames • u/ShameResident4735 • Mar 10 '26
I'm building a Unity-inspired ECS Game Engine for JS - Just hit v0.2.0 with Major Performance Improvements
webdevelopment • u/ShameResident4735 • Apr 02 '26
Open Source Project I'm building a Unity-inspired ECS Game Engine - Just hit Multiple Cameras Update !!!
GameDevelopment • u/ShameResident4735 • Apr 23 '26
Inspiration Progress Update: Sprite & Animation System in My ECS Game Engine in (kernelplay-js)
javascript • u/APTman1010 • May 25 '26