Giter VIP home page Giter VIP logo

game-bau-cua's Introduction

Giới thiệu

  • Tên game: Bầu Cua
  • Tác giả: Kỳ Viết Tool / Facebook: KA Tự Kỉ
  • Ngôn ngữ lập trình: NodeJS
  • Thư viện: ExpressJS & socket.io
  • Phiên bản: 1.0.0

Config server và game

  • Thay đổi port của server tại dòng 22 của file "index.js"
  • Thay đổi thời gian đặt cược và thời gian nghỉ giữa các phiên tại dòng 7 và 8 của file "baucua.js"
  • Thay đổi số tiền khởi đầu cho mỗi người chơi / 1 client tại function addAccount, dòng 154 của file "baucua.js"

Khởi chạy server

  • Cài đặt NodeJS (Source code sử dụng v14.17.0)
  • Source code đã bao gồm thư viện ExpressJS và socket.io
  • Chạy server bằng cách mở cmd tại folder source code, sau đó gõ lệnh
node index.js

Chơi game (client)

  • Mở trình duyệt web, truy cập địa chỉ: localhost:8080 hoặc 127.0.0.1:8080 để chơi
  • Để các máy trong mạng LAN chơi cùng nhau, mở cmd và gõ lệnh
ipconfig

=> Lấy IPv4, sau đó truy cập IP:8080 trên trình duyệt để chơi.

  • Lưu ý: Port 8080 thay đổi tuỳ theo bạn config trên server

Assets

  • Assets được crawl từ game Bầu Cua trên CH Play
  • File PSD để lấy toạ độ design UI nằm tại đường dẫn "www/assets/design.psd"

game-bau-cua's People

Contributors

yzarc204 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.