Giter VIP home page Giter VIP logo

grid's Introduction

Grid Plugin

An UE4 plugin for grid-based game

image

Features

  • Support square and hexagon grid
  • Support multi-level grid
  • Grid-based pathfinding and movement
  • Multiple grid rendering method: Decal and Outline(XCom2-like)
  • Grid sensing component1
  • Blueprint support
  • Editor integration
  • Customizable classes
  • PathGuide for rendering path

QuickStart

  • Set pawn's default controller to AAIController or its subclass2
  • Add UGridNavigationComponent to your pawn3
  • Add UGridSensingComponent to your pawn (optional)
  • Spawn GridManager at game startup4
  • Write game logic

Customizable Classes

  • UGridInfo: inherit from this class to add game-specific information
  • USquarePathFinder and UHexagonPathFinder: customize pathfinding logic
  • UGridNavigationAgent: inherit from this class to implement special movement, e.g.: jump, climb and so on
  • UGridPainter: customize grid rendering5

Install

  1. Clone this project to ${YourProject}/Plugins/
  2. Generate project file
  3. Compile

Donate

Donate


  1. plus a component visualizer for debug and level design

  2. we need it to implement default grid-based movement

  3. if you have custom UGridNavigationAgent, add it to Component's 'AgentClasses'

  4. if you have custom class, set it properly in spawn parameter

  5. Default is UGridDecalPainter which using decal component to rendering grid

grid's People

Contributors

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