michalbe / mibbu Goto Github PK
View Code? Open in Web Editor NEW:space_invader: [deprecated] Javascript Game MicroFramework.
:space_invader: [deprecated] Javascript Game MicroFramework.
your website is down. It would be great to find the documentation on github, too.
I defined 4 platform which our hero will run on,
this snipped wont work
for(var i=0;i<4;i++){
sprite.hit(wall2[i], spriteColl)
}
but this works
for(var i=0;i<4;i++){
wall2[i].hit(sprite, spriteColl)
}
spriteColl is collusion function.
spriteColl = function(){
sprite.d*=-1 ;
};
error is p2 undefined in mibbu.js line 260
258 for(element in MB_collides[loopIndex].hits){
259 p2 = MB_fixedIndexColl[element];
260 p2Top = p2.posY + p2.cZ.t;
if there is one image in sprite we create it
game.spr( width, height, 0, 0);
sprite.draw function (in mibbu.js line 455) checks for frame
if (t.fs > 0) {
because 0>0 is false, if there is one image in sprite it is not drawn. So I put equal sign
if (t.fs >= 0) {
hi,
if this is called like that
MB_collides[loopIndex].hits[element](p1, p2);
we can use objects in collusion callback function.
It is mibbu.js line 280.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.