Git Product home page Git Product logo

findghost's Introduction

Hi there 👋

findghost's People

Contributors

benizhu avatar jill-ye avatar jiyoumcc avatar mecyl avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

benizhu mecyl

findghost's Issues

重写clear逻辑,对于玩家的超时离线机制要更新

【游戏信息】法官“睡觉觉”很无聊,走了。
【系统消息】“睡觉觉”离开了。
14:12:00 LL:(小白来了)
【系统消息】“LL”离开了。
【系统消息】“叶子”离开了。
【系统消息】“太极手”离开了。
【系统消息】“烤斑马的蝴蝶”离开了。
【游戏信息】游戏结束, 人赢了!
【游戏信息】玩家“LL”逃跑了,Ta在逃跑的路上被活活呸死~~
【游戏信息】游戏结束, 人赢了!
【游戏信息】玩家“太极手”逃跑了,Ta在逃跑的路上被活活呸死~~
【游戏信息】游戏结束, 人赢了!
【游戏信息】玩家“烤斑马的蝴蝶”逃跑了,Ta在逃跑的路上被活活呸死~~
【游戏信息】人词:月落鸟啼
【游戏信息】人词:月落鸟啼
【游戏信息】人词:月落鸟啼
【游戏信息】鬼词:月落狐啼
【游戏信息】鬼词:月落狐啼
【游戏信息】鬼词:月落狐啼
【游戏信息】人:太极手,烤斑马的蝴蝶
【游戏信息】人:太极手,烤斑马的蝴蝶
【游戏信息】人:太极手,烤斑马的蝴蝶
【游戏信息】鬼:LL
【游戏信息】鬼:LL
【游戏信息】鬼:LL
14:12:19 睡觉觉:。。。。
14:12:26 烤斑马的蝴蝶:LL跑了?
14:12:26 LL:................
14:12:32 LL:系统有问题
14:12:35 LL:啊啊啊啊啊
【游戏信息】“睡觉觉”要抓鬼!
【游戏信息】“睡觉觉”不玩了。
14:12:46 LL:不然我第一个说 怎么会错
14:12:46 睡觉觉:什么问题
14:12:47 烤斑马的蝴蝶:怎么全跑了
14:13:03 LL:系统把我们踢走了啊
14:13:06 烤斑马的蝴蝶:好像系统问题,要告诉草草
【游戏信息】“LL”要抓鬼!
14:13:13 LL:之前也试过
【游戏信息】“太极手”要抓鬼!
14:13:15 叶子:这是出BUG了?
【游戏信息】“烤斑马的蝴蝶”要抓鬼!
14:13:35 太极手:不知道什么毛病
14:13:42 叶子:好像是法官逃跑了,就造成全部逃跑了
14:13:53 叶子:记下来跟草兔说
14:13:56 LL:斑马是自动被退出了吗

集体逃跑/投票结果异常

  1. 游戏中突然状态异常,出现所有人员批量离线或者逃跑

  2. 投票未结束,某人就被投死了,游戏异常结束

轮到说话或投票的时候消息提示 from 神来猫猫

ref:

document.addEventListener('DOMContentLoaded', function () {
  if (!Notification) {
    alert('Desktop notifications not available in your browser. Try Chromium.'); 
    return;
  }
  if (Notification.permission !== "granted")
    Notification.requestPermission();
});
function notifyMe() {
  if (Notification.permission !== "granted")
    Notification.requestPermission();
  else {
    var notification = new Notification('Notification title', {
      icon: 'http://cdn.sstatic.net/stackexchange/img/logos/so/so-icon.png',
      body: "Hey there! You've been notified!",
    });
    notification.onclick = function () {
      window.focus()
    };
  }
}

法官可配置规则

目前想到的

1, 可以设置爆词模式:提醒or判死
2, 投票超过半数:提醒or判死

聊天信息优化

1 设置是否滚屏
2 删除时间戳功能
3 设置只显示512的消息

重构游戏记录

  • 把游戏记录整合至主页的模块中
  • 优化记录界面
  • 删除无用字段

有个建议

抓爆词不要在发言后

直接踢爆词玩家出局,很容易导致游戏结束。

可以改成在玩家发言的时候,系统发现有爆词就拦截住不发出来,然后提示该玩家修改,直到没有爆词再发出。

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.