Giter Club home page Giter Club logo

23-game-of-life-part-1-seek-behavior's Introduction

ReactU Episode #23

Series: Steering Behaviors in JavaSript

Watch the video!

Part 1: Implementing a basic Seek behavior

In this episode we will be setting up a world for our creatures (specimens) and food (edibles) to live in! We will wire up Redux to handle the state, create some physics objects (Specimen, Food, and Entity) and use class inheritance to apply common functionality.

We will also create a Vector class from scratch to describe the Euler math to our game engine to handle the positioning and movement of our entities. Finally we will implement the seek behavior so our specimens will traverse across the world (canvas) to reach the food they want to eat!

Table of Contents (branches)

  1. Start here - Basic create-react-app ready to go
  2. Building a Canvas for our entities to live in
  3. Setting up Redux for a single source of state
  4. Creating an Entity class to position objects on our Canvas
  5. Creating a Vector class for position/movement math
  6. Creating a Specimen class to live in our world
  7. Creating the Specimen Redux reducer, mappings, and actions
  8. Creating a Food class and adding it to Redux
  9. Implementing the seek behavior on the Specimen

23-game-of-life-part-1-seek-behavior's People

Contributors

marktellez avatar

Watchers

James Cloos 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.