KaBoom.js Alpha Release!!!
h
slmjkdbtl

UPDATE: Kaboom.js is officially out right now: https://replit.com/kaboom

Video game, beautiful thing, so much fun. Games should be fun of course, but game making itself should also be fun, it should be a game on its own! We here at replit are imagining a fun collaberative game programming environment that makes game programming fun again, and here's our first step: KaBoom.js, a JavaScript game library that enables everyone to start making a small game from scratch in an instant!

This is a community alpha release, features and docs are not fully stable yet, we really want to hear everyone's opinions, any suggestions or bug reports please comment below!

try out in the template repl
doc
guide

let's start making that game!

You are viewing a single comment. View All
EpicGamer007

Is there a cdn for this? Also, the link you put:

for github does not work.

slmjkdbtl

@EpicGamer007 Hi! Sorry forgot to make the github repo public, it's good now, thanks for letting me know. It's not on a cdn yet, but for now you can get it pretty easily since it's just one file.

EpicGamer007

@slmjkdbtl ok, thanks for confirming!

amasad

@EpicGamer007 hi epic, can you try making something with it and giving us feedback? Thx

EpicGamer007

@amasad sure! I will try as soon as I can (probably today or tomorrow) :)

EpicGamer007

@slmjkdbtl @amasad One thing to know, in your guide, when you make the bullets have random colors and sizes, there is a syntax error. You are supposed to put ; but there seems to be two commas:

One thing I also see you use is sup as a function. Though it does make sense, in my opinion, function names should describe what they are doing a bit more. I think that I would get confused by what the sup function would do if I first encountered it. I am still going through the guide to learn more about it but it looks pretty good so far!

slmjkdbtl

@EpicGamer007 Thanks for the feedback! Yeah I also think sup is not the ideal name kinda ambiguous, goal is to have a name that's short and fun to type, if that doesn't work for people then we'll change it. If you happen to have any suggestion please let me know!

EpicGamer007

@slmjkdbtl I am workin on a little game right now. and so far, everything has been pretty smooth. I am really enjoying how simple it is to code with it and it does not take that many lines of code either :).

slmjkdbtl

@EpicGamer007 Hey that's awesome! Let me know if there's any problem

EpicGamer007

@slmjkdbtl ok. also, one quick question. for the loop function. does the time update? like if i had something like

and then have some code like:

would the time between each loop update?

slmjkdbtl

@EpicGamer007 That won't because the function cannot keep a reference to a number type, timeBetweenSpawn will only get evaluated once at start, if you want to do this you'll have to use recursive wait like

this is also more flexible cuz you easily decide to stop the timer loop (not call the next wait), with loop there's no way to stop the loop yet (there will be shortly)

EpicGamer007

@slmjkdbtl ok thank you!

EpicGamer007

@slmjkdbtl another questions, how do we remove text from the scene? I tried destroy(text); and that didnt work.. (I am trying to display the users score but the text does not update so i am trying to find out how i can remove text);

slmjkdbtl

@EpicGamer007 possibly because text is the name of the built in function, if you name it to something else it should work? also you can update the text value by changing its text field like this:

forgot to put that into doc, doing that now

EpicGamer007

@slmjkdbtl ok thank you again! (By text, I just meant the text that i wanted to show).