Code Monkey home page Code Monkey logo

tactical's People

Contributors

fraga avatar seixasfelipe avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

fraga

tactical's Issues

Make use of requestAnimationFrame

Until right now, the experiment is not using real canvas methods to render, handle events, move or resize objects and tiles.

At least it should use the requestAnimationFrame as main loop to be able to run animations, updates and rendering in 60 fps.

What's the goal with this project?

It would be nice to start with the idea of reproducing/remaking a tactical battle field based on games below.
Feel free to add new ideas.

Master of Magic
Master of Magic

Worlds of Magic
Worlds of Magic

Xcom - Terror from the Deep
Xcom - Terror from the Deep

Heroes of Might and Magic III
Heroes of Might and Magic III

Move objects

  • Click on object to select it
  • Click on target tile to move selected object
  • If target tile is not empty, object should not be moved

Map generation based on a matrix data structure

  • Map tiles should be generated based on information stored in a matrix data structure.
  • This data structure could be a simple JSON file,
    e.g.
  [
   0, 0, 0, 0, 0, 0, 0, 
   0, 0, 0, 1, 0, 0, 0, 
   0, 0, 0, 2, 0, 0, 0, 
   0, 0, 0, 0, 0, 0, 0 
  ]

Where:
0 = empty space
1 = an object (not empty space)
2 = another object (not empty space)

An object can be a polygon for instance.

Code refactoring

We must rethink how to organize the code in order to have responsibilities separated following SOLID principles.

How could we reorganize the code? Which classes should it have? Which design patterns should it use?

e.g. Classes:

Game
GameObject
...

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.