Giter Site home page Giter Site logo

my-playground's Introduction

steps to LEARN WASM + LEPTOS

read docs (BORING, but what can you do?)

PROJECTS:

  • make snake in JS and then in Leptos

    • steps:
      • Set up the game canvas: Create a canvas element in your HTML file and use JavaScript to get its context, set its width and height, and clear it before each frame.

        • Set up the game loop: Use requestAnimationFrame to create a loop that updates the game state and redraws the canvas every frame.

        • Create the snake: Define the initial position and size of the snake, and create an array to store its body segments. Move the snake by updating the position of its head and adding a new body segment at the front.

        • Add food: Generate a random position for the food and check for collisions with the snake. If the snake eats the food, increase its size and generate a new food.

        • Handle user input: Use the keyboard or touch events to allow the user to control the snake's direction.

        • Detect collisions: Check for collisions between the snake and the walls or its own body. If the snake collides with something, end the game.

        • Update the score: Keep track of the player's score based on the number of food items eaten.

        • Add game over screen: When the game ends, display a message to the user and allow them to restart the game.

  • make I love Hue in JS and then in Leptos

    • VUE 3 and Leptos?

#DONZO

my-playground's People

Contributors

jdn89 avatar

Stargazers

Roman avatar

Watchers

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