zoukankan      html  css  js  c++  java
  • 【网易官方】极客战记(codecombat)攻略-游戏开发1-斩首老鼠

    关卡连接:https://codecombat.163.com/play/level/vorpal-mouse

    免费试玩:https://codecombat.163.com/play

    点击作战。

    简介

    游戏过程中,你可以点击地面来移动,也可以点击食人魔进行攻击!

    这一关里,你只需要点击PLAY,然后打败所有食人魔!

    默认代码

    # 游戏中,点击食人魔来攻击!
    # 这一关不需要键入任何代码,只需要点击测试关卡按钮!
    # 下列代码将生成一个可供游戏的英雄:
    game.spawnPlayerXY("guardian", 40, 40)
    # 这些将为关卡添加目标:
    game.addDefeatGoal()
    game.addSurviveGoal()
    # 这将生成一些可供战斗的敌人:
    game.spawnXY("munchkin", 40, 25)
    game.spawnXY("munchkin", 15, 15)
    game.spawnXY("munchkin", 65, 15)
    # 这将为玩家生成一个迷宫:
    game.spawnXY("forest", 30, 54)
    game.spawnXY("forest", 50, 54)
    game.spawnXY("forest", 30, 48)
    game.spawnXY("forest", 50, 48)
    game.spawnXY("forest", 30, 40)
    game.spawnXY("forest", 50, 40)
    game.spawnXY("forest", 30, 32)
    game.spawnXY("forest", 50, 32)
    game.spawnXY("forest", 30, 26)
    game.spawnXY("forest", 50, 26)
    game.spawnXY("forest", 30, 10)
    game.spawnXY("forest", 50, 10)
    game.spawnXY("forest", 22, 26)
    game.spawnXY("forest", 58, 26)
    game.spawnXY("forest", 14, 26)
    game.spawnXY("forest", 66, 26)

    概览

    Coming soon!

    斩首老鼠 解法

    # 游戏中,点击食人魔来攻击!
    # 这一关不需要键入任何代码,只需要点击测试关卡按钮!
    # 下列代码将生成一个可供游戏的英雄:·
    game.spawnPlayerXY("guardian", 40, 40)
    # 这些将为关卡添加目标:
    game.addCollectGoal()
    game.addSurviveGoal()
    # 这将生成一些可供战斗的敌人:
    game.spawnXY("munchkin", 40, 25)
    game.spawnXY("munchkin", 15, 15)
    game.spawnXY("munchkin", 65, 15)
    # 这将为玩家生成一个迷宫:
    game.spawnXY("forest", 30, 54)
    game.spawnXY("forest", 50, 54)
    game.spawnXY("forest", 30, 48)
    game.spawnXY("forest", 50, 48)
    game.spawnXY("forest", 30, 40)
    game.spawnXY("forest", 50, 40)
    game.spawnXY("forest", 30, 32)
    game.spawnXY("forest", 50, 32)
    game.spawnXY("forest", 30, 26)
    game.spawnXY("forest", 50, 26)
    game.spawnXY("forest", 30, 10)
    game.spawnXY("forest", 50, 10)
    game.spawnXY("forest", 22, 26)
    game.spawnXY("forest", 58, 26)
    game.spawnXY("forest", 14, 26)
    game.spawnXY("forest", 66, 26)
     

    本攻略发于极客战记官方教学栏目,原文地址为:

    https://codecombat.163.com/news/jikezhanji-zhanshoulaoshu

    极客战记——学编程,用玩的!
  • 相关阅读:
    redis sentinel(哨兵)配置解读
    配置哨兵监控Redis运行情况
    java 客户端链接不上redis解决方案
    Redis配置主从架构,实现读写分离
    Redis简介,安装和配置,停止,卸载(图解方式)
    linux下监控用户的操作记录---录像播放性质
    Spring的数据库开发
    Spring中Bean的作用域、生命周期
    Spring中Bean的实例化
    Spring之初体验
  • 原文地址:https://www.cnblogs.com/codecombat/p/12118194.html
Copyright © 2011-2022 走看看