Giter VIP home page Giter VIP logo

jilegeji's Introduction

纯前端实现羊了个羊

技术栈

react + vite + ts + antd

体验网址

jilegeji.zyxiong.com

游戏展示

配置界面:

image-20220924203210310

游戏界面:

image-20220924203235615

游戏结束界面:

image-20220924203257350

运行

yarn install yarn dev

核心原理

  1. 由于没有使用redux,所有的配置都放置在顶层组件上,方便使用
  2. 地图看成一个三维空间,每一个平面(x, y)都可以确定一个方块,一个方块占据四个点位
  3. 计算层叠关系的时候关键就是要考虑更高层的点位上是否有卡片

后续

所有代码均已开源,请勿做其他用处。由于是闲暇时间所做,难免会有bug,也欢迎大家踊跃提issuse,代码有不懂的也可以留言,作者看到了会第一时间回复

jilegeji's People

Contributors

xzy0625 avatar

Stargazers

Jiahong Ma avatar

Forkers

ldyjjm

jilegeji's Issues

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.