amir ← Bitsbox Community My feedback 1 result found Numbered apps 378 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 193 comments · General » Other · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment amir commented · Nov 30, 2020 · Edit… · Delete… thus is a fun game copy and paste fill('hills2') function platform(i) { y = i * 300 p = stamp('platform',375,i*300,220) p.startY = y } repeat(platform, 4) hero = stamp('plumber',385,750,300) function touching() { if (x > hero.x) { hero.change('plumber') } else { hero.change('plumber2') } hero.move(x,y,500) } altitude = 0 power = 50 gravity = 4 speed = power score = 0 function obstacles() {} function death() {} function scroll(block) { block.move(block.x,block.startY+altitude) if (block.y > 1100) { block.startY = block.startY-990-random(200) block.move(random(800),block.y) } } function loop() { speed = speed - gravity altitude = altitude + speed find('platform').forEach(scroll) if (speed < 0 && hero.hits('platform')) { speed = power sound('jump2') stamp('pow',hero.x,hero.y) hero.move(hero.x,hero.y-20) } obstacles() if (speed < -100) { death() } } coin = stamp('coin',500,500) coin.startY = 500 baddie = stamp('poop',700,150,100) baddie.startY = 150 function obstacles() { scroll(coin) scroll(baddie) if (speed < 0 && hero.hits(coin)) { speed = power * 2 score = score + 1 sound('coin') } if (hero.hits(baddie)) { death() } } function death() { stamp('coin',300) text(score,375,350,150,'impact','center') loop = null touching = null hero.move(DOWN,2000,1000) sound('flush') } song('brothers') Save Submitting...
thus is a fun game copy and paste
fill('hills2')
function platform(i) {
y = i * 300
p = stamp('platform',375,i*300,220)
p.startY = y
}
repeat(platform, 4)
hero = stamp('plumber',385,750,300)
function touching() {
if (x > hero.x) {
hero.change('plumber')
} else {
hero.change('plumber2')
}
hero.move(x,y,500)
}
altitude = 0
power = 50
gravity = 4
speed = power
score = 0
function obstacles() {}
function death() {}
function scroll(block) {
block.move(block.x,block.startY+altitude)
if (block.y > 1100) {
block.startY = block.startY-990-random(200)
block.move(random(800),block.y)
}
}
function loop() {
speed = speed - gravity
altitude = altitude + speed
find('platform').forEach(scroll)
if (speed < 0 && hero.hits('platform')) {
speed = power
sound('jump2')
stamp('pow',hero.x,hero.y)
hero.move(hero.x,hero.y-20)
}
obstacles()
if (speed < -100) {
death()
}
}
coin = stamp('coin',500,500)
coin.startY = 500
baddie = stamp('poop',700,150,100)
baddie.startY = 150
function obstacles() {
scroll(coin)
scroll(baddie)
if (speed < 0 && hero.hits(coin)) {
speed = power * 2
score = score + 1
sound('coin')
}
if (hero.hits(baddie)) {
death()
}
}
function death() {
stamp('coin',300)
text(score,375,350,150,'impact','center')
loop = null
touching = null
hero.move(DOWN,2000,1000)
sound('flush')
}
song('brothers')