put you coding ideas here
-
yoink! commented
fill(100,100,100)
stamp('bitsbox')
team = ['aidan', 'anastasia', 'zach', 'jeff', 'scott', 'emma', 'sadie','alexandria']
heads = []i = 0
function deploy() {
a = stamp(team[i],150).move()
a.speed = random(5,15)
a.spin = random(0,5)
heads.push(a)
i = i + 1
}
repeat(deploy,team.length)function wiggle(head) {
head.move(UP,head.speed)
head.rotate(RIGHT,head.spin)
if (random(10) == 1) {
head.spin = -head.spin
}
head.wrap()
}function loop() {
heads.forEach(wiggle)
} -
yoink! commented
fill('abduction')
count = 0
message = text(count,100,900,200,'lime')
time = 1000function tap() {
cow = stamp('boyfall2',400,1100,300)
cow.rotate(RIGHT,720,time)
cow.move(400,200,time)
cow.size(0,time)
count = count + 1
message.change(count)
sound('scream2')
} -
yoink! commented
fill('nebula')
function platform(i) {
y = i * 300
p = stamp('platform',375,i*300,220)
p.startY = y
}
repeat(platform, 4)hero = stamp('pixelbunny',385,750,120)
function touching() {
if (x > hero.x) {
hero.change('pixelbunny')
} else {
hero.change('pixelbunny')
}
hero.move(x,y,500)
}
altitude = 0
power = 50
gravity = 4
speed = power
score = 1function 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('pixeltriclops',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('ow')
}
song('brothers') -
yoink! commented
fill('purple')
me = stamp('car11',375,900,150)function touching() {
me.move(x,900,300)
me.aim(x,y)
}function tap() {
r = stamp('rocket 6',me.x,me.y)
r.rotate(me.rotation)
r.move(UP,1600,2000)
sound('roar',20)
}lane = 300
time = 1500
count = 0function swerve() {}
function danger() {}
function drones() {}function loop() {
mid = 375 + Math.sin(count) * lane
x1 = mid - lane
x2 = mid + lane
stamp('pillar',x1,0).move(DOWN,1300,time).back()
stamp('pillar',x2,0).move(DOWN,1300,time).back()
stamp('circle',mid,0).move(DOWN,1300,time).back()
swerve()
danger()
drones()
}curve = 0
function swerve() {
count = count + curve / 100
if (random(10) == 1) {
curve = random(10) + count/10
lane = lane + random(-12,10)
lane = Math.max(lane,100)
}
}pts = 0
score = text(pts,'impact',20,50,'silver')function danger() {
pts = pts + 10
score.change(pts)
if (me.hits('pillar') || me.hits('drone2')) {
loop = null
me.explode()
sound('laugh')
stamp('monster33',375,0).move(DOWN,500,time)
}
}function zap(drone) {
if (drone.hits('rocket6')) {
drone.explode()
sound('nuke')
pts = pts + 1000
}
}function drones() {
find('drone2').forEach(zap)
if (random(30) == 1) {
enemy = stamp('drone2',random(768),0)
enemy.move(DOWN,1500,10000)
sound('droid')
}
}
song('unstable') -
yoink! commented
stamp('mouth')
big = 1000
tiny = 1
time = 800function tap() {
x2 = random(777)
food = stamp('icecream',x2,999,big)
food.move(x,y,time)
food.size(tiny,time)
}
stamp('eyeball',278,246,200)
stamp('eyeball',550,220,200)
text('feed me please',70,810,100,'white')
fill('space3') -
yoink! commented
fruit = stamp('robot10',340)
fruit.tap = boom
function boom() {
sound('nuke',14)
this.explode(respawn)
}
function respawn() {
this.show()
this.move()
}
fruit = stamp('robot10',340)
fruit.tap = boom
function boom() {
sound('nuke',14)
this.explode(respawn)
}
function respawn() {
this.show()
this.move()
}
fruit = stamp('robot10',340)
fruit.tap = boom
function boom() {
sound('nuke',14)
this.explode(respawn)
}
function respawn() {
this.show()
this.move()
}fill('dangerroom')
song('matrix')
-
yoink! commented
fill('city2')
dragon = stamp('dragon6',0,300)
fire = stamp('flames',240,270,1)function drag() {
stamp('crater',x,y,50)
burn = stamp('fire',x,y,200)
burn.size(0,2000)
fire.front().aim(x,y)
fire.size(distance(burn,fire)*2)
}function untouch() {
fire.size(0,500)
dragon.dance()
}stamp('blockperson',100)
stamp('blockperson2',552,678,100)
stamp('blockperson3',118,834,100)
stamp('blockperson4',674,262,100)
stamp('dab2',706,854,100)
stamp('dancing',214,586,100)
stamp('man',582,116,100)