KaBoom.js Alpha Release!!!
UPDATE: Kaboom.js is officially out right now: https://replit.com/kaboom
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!
let's start making that game!
@slmjkdbt @amasad Since KaboomJs doesn't have a GitHub repository, I will post my issue here, the clearCode function inside the init function doesn't work properly, I tried typing an rgb color code inside it and it doesn't seem to add the color I want. For example
This only makes the game's background white.
Is there a github repository? I would like to access an older version but I do not know where I would
@EpicGamer007 Hi! Kaboom is not open source released yet so sorry no. Now we're working on a dedicated Kaboom environment on replit that have custom editor features for kaboom so stay tooned! If you want an older version (the version comes with this post I suppose?), I've put it in this repl: https://repl.it/@slmjkdbtl/kaboom-old
The only big change is the component system
add([ comps ]), but you can still use the old style
sprite(conf) with https://kaboomjs.repl.co/kit/starter.js (
For anyone who wants a CDN for this: https://cdn.jsdelivr.net/gh/replit/kaboom/kaboom.js
Try minifying this to make it faster to load... (Of course, keep an unminified copy).
@amasad XD how? From the looks of it, you need to know a bit about canvas. (NVM I looked, wow!)
Also, quick question, was wanting to know this:
You made repl.it in Golang right?
How do you redirect to https? I can't find out how to do it, because apparently https is hosted on a different port, but https is already set up on a repl even tho you didn't set up https yourself...
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!
@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
this is also more flexible cuz you easily decide to stop the timer loop (not call the next
loop there's no way to stop the loop yet (there will be shortly)