Giter Site home page Giter Site logo

aoe's Introduction

AOE

loop

  • detect_joystick
  • stop_laser
  • detect_light
  • gameOver ? game_over

control_laser

  • activate_laser: 射击, 记录上次射击秒数
  • stop_laser: 现在秒数大于上次射击秒数+射击持续时间 ? 关闭

control_motor

  • control_motor: 如果摇杆左偏: 向左,右偏向右,中心:不懂
  • set_motor_pwm: 控制转速/方向

detect_joystick

  • detect_joystick:
    • 获取摇杆指示
    • 如果游戏未结束
      • 控制方向
      • 控制射击
    • 如果游戏结束
      • 两人射击,重新开始
  • joystick: 获取coordinates
  • test_print_joystick

detect_light

  • detect_light:获取当前光照强度,大于limit: 游戏结束,更新玩家状态

game_over

  • game_over: 输/赢/平局,等待重新开始
  • game_restart: 重置
  • reset: 重置参数

火线红色 地线黑 摇杆1:x轴白色,y轴灰色 摇杆2:x轴黄色,y轴橙色 马达:蓝/紫 laser: 电源绿,ground棕

aoe's People

Contributors

blankrh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.