zoukankan      html  css  js  c++  java
  • 第6篇scrum冲刺(5.26)

    一、站立会议

      1、照片

      2、工作安排

    成员 昨天已完成的工作 今天的工作安排 困难
    陈芝敏   研究云开发,更新了登录模块,把用户的信息传入数据库了  学习云开发,云函数调用以及数据的前后端传递  遇到很多莫名其妙,憨憨的bug
    冯晓凤   弄退出房间的按钮  学习关于画板的相关知识,并且着手做  对于laya里面的父节点操作子节点太难了。
    江晓琦  写了转发分享邀请好友加入房间的功能  学习laya,继续完善房间功能  对laya运用不熟悉,效率低
    高子茵  画首页的三个按钮  画线下游戏页面的所有按钮  今天的ps依旧不得劲,改用sai,要熟悉一下

    二、燃尽图

    三、签入记录

    四、项目程序

      1.代码

    var path = [], 
        isDown = false,
        liveGraphics,
        canvasGraphics;
       
    export default class canvas extends Laya.Sprite{
        constructor(){
            super();
    
            this.create_canvas();
    
            Laya.timer.frameLoop(1,this,this.animate);
            
            this.on(Laya.Event.MOUSE_DOWN,this,this.ondown);
            this.on(Laya.Event.MOUSE_MOVE,this,this.onmove);
            this.on(Laya.Event.MOUSE_UP,this,this.onup);
        }
        create_canvas(){
            const Sprite = Laya.Sprite;
            let graphicsCanvas = new Sprite();
            this.addChild(graphicsCanvas);
            let liveGraphicsCanvas = new Sprite();
            this.addChild(liveGraphicsCanvas);
            
            window.graphicsCanvas = graphicsCanvas;
            window.liveGraphicsCanvas = liveGraphicsCanvas;
        
    
            liveGraphics = liveGraphicsCanvas.graphics;
            canvasGraphics = graphicsCanvas.graphics
    
    
        }
        ondown(){
            isDown = true;
        //    var color = "#ffff";
            path.length = 0;
        console.log("kkkkkkkk");
        }
    
        onmove() {
              if (!isDown) return;
          console.log("dddddd");
              path.push(this.mouseX);
              path.push(this.mouseY);
          }
    
          onup() {
          isDown = false;
          console.log("ttttt");
          canvasGraphics.drawCurves(0, 0, path.concat(), window.canvas_draw_color,10);
          path.length = 0;
          }
          
        animate(){
            liveGraphics.clear();
            liveGraphics.drawCurves(0,0,path,window.canvas_draw_color,10);
          }
    }

      2.运行截图

    //同步绘画帧

    五、每日总结

    成员 每日总结
    陈芝敏  刚开始接触一样新的东西难免碰壁,明天会更好
    冯晓凤  太菜了,继续努力
    江晓琦   今天继续学习laya,继续看网课,但是学习效果好像不太好
    高子茵  画图,最重要手稳
  • 相关阅读:
    [Keyence Programming Contest 2020 E] Bichromization
    [Gym101821B] LIS vs. LDS
    [Ynoi2010]iepsmCmq【数据结构】
    【集训队作业2018】喂鸽子
    【集训队作业2018】复读机
    【NOI2015】荷马史诗
    【IOI2018】组合动作
    【清华集训2017】榕树之心
    【清华集训2016】Alice和Bob又在玩游戏
    1209F
  • 原文地址:https://www.cnblogs.com/ivygzy/p/12966659.html
Copyright © 2011-2022 走看看