第6篇scrum冲刺(5.26)
阅读原文时间:2023年07月11日阅读:1

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,继续看网课,但是学习效果好像不太好

高子茵

 画图,最重要手稳

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章