![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CodeCombat
Suagr
这个作者很懒,什么都没留下…
展开
-
CodeCombat-重点目标
// The following runs whenever the tower needs// something to do.var unit = this.getNearestCombatant();if (unit && unit.team != "humans" && unit.team != "allies") { this.say('Perish, ' + unit原创 2014-03-16 22:33:17 · 1494 阅读 · 2 评论 -
CodeCombat-辱骂
this.say("Hey!");this.say("Oh");this.say("SB");this.say("Come to die");// Lure the ogre right into your arrow trap// by saying a few more things at him.// Anything works!游戏截图:原创 2014-03-09 10:44:47 · 2868 阅读 · 0 评论 -
CodeCombat-辱骂警卫
this.moveRight();this.bustDownDoor();// Delete the "//" in front of each line below.this.moveRight();this.say("Hey there!");this.moveLeft();this.moveLeft();this.say("Attack!");// Now get Pho原创 2014-03-09 10:05:18 · 2675 阅读 · 0 评论 -
CodeCombat-胆怯的辱骂
this.moveXY(50, 16);this.say("Hey!");//this.moveXY(63, 20);this.moveXY(70, 10);// This is a safe spot.this.say("I can lure them in here."); // Run your soldier out where the ogres can hear yo原创 2014-03-09 10:57:49 · 1614 阅读 · 1 评论 -
CodeCombat-机动火炮
this.moveXY(30, 26); // Move into rangethis.attackXY(46, 5); // Shoot once in the middle of the ogres// If they survive a hit, ogres retaliate!// Larger ogres take more than one hit...// So, po原创 2014-03-09 11:40:04 · 1125 阅读 · 0 评论 -
CodeCombat-捡蘑菇
this.moveUp();this.moveRight();this.moveLeft();';';this.moveUp();this.attackNearbyEnemy();游戏截图:原创 2014-03-09 00:33:33 · 1169 阅读 · 0 评论 -
CodeCombat无法保存游戏进度的说明
最近玩CodeCombat的时候,遇到游戏无法保存进度的问题。在官网论坛搜索了下,发现已经有提到问题。官方给出的回答是现在还是没那么完善,后续会逐步完善。现在能做到的就是如果你注册了帐号,用此帐号玩游戏的话,那么会保存游戏代码,但进度不会保存。而且貌似还要在同一台电脑上才行。下面是官方论坛给出的关于不能保存游戏进度说明。看来目前就只有一关一关来了,很是麻烦啊。。希望尽快完善好。所以目前把每关代码复原创 2014-03-09 00:20:20 · 2333 阅读 · 1 评论 -
CodeCombat-命令下属
this.moveXY(49, 66);this.moveXY(60, 63);this.moveXY(75, 63);this.say("Hail, friends!");// Saying anything with "follow" in it will get nearby soldiers// to follow youthis.say("Follow me!");thi原创 2014-03-09 11:22:20 · 2340 阅读 · 0 评论 -
CodeCombat-是个陷阱
// Taunt the Ogre and run for cover!this.moveDown();this.moveDown();this.say("Hey,there!");this.moveUp();this.say("Attack!");this.moveUp();游戏截图:原创 2014-03-09 10:37:44 · 31116 阅读 · 4 评论 -
CodeCombat-把我喝掉
this.moveRight();this.attackNearbyEnemy();this.moveRight();this.moveDown();this.moveUp();this.moveRight();this.attackNearbyEnemy();游戏截图:原创 2014-03-09 00:57:50 · 1133 阅读 · 0 评论 -
CodeCombat-救援任务
// This is your code controlling Tharin!this.moveDown();this.moveDown();this.moveRight(); this.moveUp();// Edit it anywhere you like, add comments like thesethis.moveUp();this.moveRight();原创 2014-03-09 00:25:07 · 1458 阅读 · 0 评论 -
CodeComnat-猎人三胞胎
// This spell runs once per frame.var enemy = this.getNearestEnemy();if (!enemy) return;this.say("Die, " + enemy.id + "!");this.setTarget(enemy);//this.setAction("attack"); // Charge!if (this.d原创 2014-03-16 21:55:16 · 1229 阅读 · 0 评论