GameModelTest.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. // foo: {
  5. // default: null, // The default value will be used only when the component attaching
  6. // to a node for the first time
  7. // url: cc.Texture2D, // optional, default is typeof default
  8. // serializable: true, // optional, default is true
  9. // visible: true, // optional, default is true
  10. // displayName: 'Foo', // optional
  11. // readonly: false, // optional, default is false
  12. // },
  13. // ...
  14. },
  15. // use this for initialization
  16. // onLoad: function () {
  17. // var gameModel = new GameModel();
  18. // gameModel.init();
  19. // gameModel.printInfo();
  20. // for(var i = 1;i<=9;i++){
  21. // for(var j = 1;j<=9;j++){
  22. // console.log(gameModel.checkPoint(i,j).join(" ,"));
  23. // }
  24. // }
  25. // },
  26. // called every frame, uncomment this function to activate update callback
  27. // update: function (dt) {
  28. // },
  29. });