Coder Social home page Coder Social logo

zhixuan2333 / taruto Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 14.62 MB

A Game of Ludo

Home Page: https://taruto.demo.zhixuan.dev

License: MIT License

HTML 4.73% CSS 2.57% TypeScript 91.39% Dockerfile 1.31%
3d ludo ludo-game react socket socket-io typescript

taruto's People

Contributors

dependabot[bot] avatar restyled-io[bot] avatar taiyaki256 avatar wow-love avatar zhixuan2333 avatar

Watchers

 avatar

taruto's Issues

コマを動かせるようにする関数を作る

Hi There!

_allKoma をだけ変えても無理でした、なんか useEffect が変数監視できてない(´;ω;`)
useFrame とか async の関数を使って_allKoma を監視して、変わったら変える方式で行きましょう!

参考

taruto/client/src/App.tsx

Lines 214 to 227 in 0a127d2

useFrame(() => {
Komas[5].MoveToMasu(masu);
temp.position.set(
Komas[5].Position.x,
Komas[5].Position.y,
Komas[5].Position.z
);
temp.updateMatrix();
ref.current.setMatrixAt(5, temp.matrix);
ref.current.instanceMatrix.needsUpdate = true;
masu = masu._next === null ? allMasu[0] : masu._next;
});

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.