Live data from Hacker News

Kaboom – JavaScript game programming library and environment

replit.com

51–60 of 74 posts

Re: Kaboom – JavaScript game programming library and environment

#51
post #36
post #3

It seems this is aimed at young people learning how to program. My main problem with using Javascript as the first programming language to learn is the asynchronous callback paradigm, I believe it's too complicated a concept to teach in the very beginning (and you can't get around that with Javascript). When I evaluated different languages / environments to start teaching programming to my daughters I decided not to…

JavaScript itself is not async. It's the programs/engines that runs the scripting language that have decided to make it async with callbacks. For example Microsoft JS is not async. * ES2022? do have some garbage collection hook that uses a callback, so if that makes it into the standard you could say that JS/ES is async. JavaScript itself does not (yet) have any async functions.

'Async' here refers not only to the keyword but also to what is achieved, in classic javascript, through callback functions

Re: Kaboom – JavaScript game programming library and environment

#52
post #51
post #36

Earlier quoted context omitted.

JavaScript itself is not async. It's the programs/engines that runs the scripting language that have decided to make it async with callbacks. For example Microsoft JS is not async. * ES2022? do have some garbage collection hook that uses a callback, so if that makes it into the standard you could say that JS/ES is async. JavaScript itself does not (yet) have any async functions.

'Async' here refers not only to the keyword but also to what is achieved, in classic javascript, through callback functions

Even though there is the async keyword and Promise() there are no async functions nor callbacks in JavaScript itself. For example setInterval and setTimeout is not part of the language and needs to be implemented by the runtime/program that runs the JavaScript.

Re: Kaboom – JavaScript game programming library and environment

#55
post #14

Earlier quoted context omitted.

There was Click and Create, I recall having some fun with that back in the day, with very little coding (none really)

I used click and create and others by clickteam very heavily growing up. Paved the way for making games very heavily for me. Wish that methodology was still around, you could do a lot with it.

It is still around, although basically only from Clickteam still. You can get Clickteam Fusion: https://www.clickteam.com

Re: Kaboom – JavaScript game programming library and environment

#56

Earlier quoted context omitted.

Yes, but it isn't the core way the language works -- you don't need to approach asynchronicity very early on as you do with JS, and it's not all closures. At some point someone learning Python will have to do something async. But what they can do up until then is just not do anything async, and that's fine (just wait for stuff to complete...). That's not really an option in JS: the great benefit of the language from…

Its been a while that I did somehing with python - but shouldn't event handlers work pretty much the same? Or in other words, how can eventhandlers work any other way than asynchronous? And you need eventhandlers for games.

in python you would do a loop for a game, unless you're using an event driven framework that does the loop for you.

Re: Kaboom – JavaScript game programming library and environment

#57
post #33

OK, do yourself a favour and watch the introductory video. Probably the most unique intro I've yet to see for a programming library.

Reminds me of the Land of Lisp video—in a good way. http://landoflisp.com/

Time to port Grand Theft Wumpus (the most violent programming example ever put into a textbook) to Kaboom.js?

Re: Kaboom – JavaScript game programming library and environment

#59
post #31

OK, do yourself a favour and watch the introductory video. Probably the most unique intro I've yet to see for a programming library.

:) fully produced in-house by our designer Tga. Song on SoundCloud too https://m.soundcloud.com/replit/kaboom

I hope you used kaboom to create the kaboom video! Was fun to watch indeed, All the best.
Post reply on HN