Codecombat Game

Codecombat Game Rating: 3,7/5 4627 votes

CodeCombat announces it's second game, Ozaria - an immersive, computer science program where students learn the lost magic of coding to. Oct 13, 2018  The Mighty Sand Yak Test your nerves by dodging huge sand yaks on the open dunes! Basic Syntax, Arguments, Variables, Loops, If Statements, Arithmetic.

Prismata art. Prismata is an easy-to-learn turn-based strategy game that borrows familiar elements from real-time strategy games, collectible card games, and tabletop strategy games, and combines them in a radical new way. Check out Prismata's art on DeviantArt. Browse the user profile and get inspired. Prismata is the first title in a genuinely new genre of strategy game. Prismata's original design was extremely experimental, and it took years of refining, testing, and iterating to bring that design to a high level of balance and polish.

Latest commit Nov 16, 2017 Files TypeNameLatest commit messageCommit timeFailed to load latest commit information.Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017Nov 11, 2017.

Permalink

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up
Branch:master
Find file Copy path
Fetching contributors…
# https://codecombat.com/play/level/berserker
# Use the new 'collide' event to clear the path.
hero=game.spawnHeroXY('captain', 12, 34)
hero.maxSpeed=15
game.addMoveGoalXY(76, 34)
ui.track(game, 'time')
# The duration of the mushroom power.
game.powerDuration=5
# Use it to track the power time.
game.powerEndTime=0
# Mushroom are collectable items without default effects.
game.spawnXY('mushroom', 12, 52)
game.spawnXY('mushroom', 12, 16)
# Spawn more mushrooms.
game.spawnXY('mushroom', 36, 16)
game.spawnXY('mushroom', 36, 52)
game.spawnXY('mushroom', 56, 12)
game.spawnXY('mushroom', 56, 56)
game.spawnXY('mushroom', 56, 34)
# The event handler to act for collected mushrooms.
defonCollect(event):
player=event.target
item=event.other
ifitem.type'mushroom':
# 'scale' changes the visual size of the unit.
player.scale=2
game.powerEndTime=game.time+game.powerDuration
player.say('ARRRGH!!!')
# The event handler for the 'collide' event.
defonCollide(event):
# The event owner. Who has collided.
player=event.target
# The colliding object.
other=event.other
# If it's a fence.
ifother.type'fence':
ifplayer.scale2:
# Destroy the fence.
other.destroy()
pass
# Use 'collide' event to track collisions for the hero.
hero.on('collide', onCollide)
# Assign the event handler for hero on the 'collect' event.
hero.on('collect', onCollect)
defcheckTimers():
# If game time is greater than game's powerEndTime
# and the hero's scale is 2:
ifhero.scale2andgame.time>game.powerEndTime:
# Set the hero's scale to 1.
hero.scale=1
pass
whileTrue:
checkTimers()
Codecombat Game
  • Copy lines
  • Copy permalink