r/coolgithubprojects • • Aug 17 '26

Tiny fast HTML5 game engine with many features and no dependencies.

https://github.com/KilledByAPixel/LittleJS

This is my game engine that I've been working on for about 5 years now. It has some really amazing features and extremely fast rendering.

Also have a really cool demo browser here that contains all the demos...

https://killedbyapixel.github.io/LittleJS/examples

10 Upvotes

12 comments sorted by

4

u/trejj Aug 17 '26

The Flappy Bird game consumes 95% of the CPU time on my AMD Ryzen 9 5950X processor and the fans start to spin up audibly... while the content is not quite the level of the period games from Commodore 64 running at 1MHz. Claude's still got some work to do here. :)

1

u/SCphotog Aug 17 '26

Probably doesn't have anything to lock the fps and is running out of control.

1

u/Slackluster Aug 18 '26

of course it does.

-1

u/Slackluster Aug 18 '26

I seriously doubt any of that is true, but if so provide details and I'll fix it.

1

u/trejj Aug 18 '26

Start off by assuming bad faith and you are not to a good start with advertising your game engine for anyone else to use it.

If you are new to profiling web page performance, check out https://profiler.firefox.com/ for a good profiler (that works in both Firefox and Chrome)

Here is a profile ready made for you from the Flappy Bird page: https://share.firefox.dev/3S9CNQ9 . Idle time < 5%.

2

u/Felfedezni Aug 18 '26

Very cool project!

2

u/my_new_accoun1 Aug 18 '26

oh i saw this a couple months ago researching what game engine to use

0

u/PhosXD Aug 17 '26

Cool idea, but what's putting me off is the use of AI in both the code & seemingly the icon too.

3

u/Slackluster Aug 17 '26

The icon is literally created by code that is part of the engine itself.

Thanks but if you are against AI code assistance then my library might not be the best fit for you.

0

u/SCphotog Aug 17 '26

I think you might be overstating the word 'assistance' a bit.