Code Monkey home page Code Monkey logo

godot-roguelike's People

Contributors

mizar999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

boyquotes

godot-roguelike's Issues

Static dungeon floor

  • Import a tileset
  • Create a tilemap node using the imported tileset
  • Create a fixed dungeon floor

Create actors & scheduler

  • Create an actor class as base class for the player and all enemies
  • Create an action class and add a movement action
  • Implement a basic scheduler
    • Fetches all actors in a scene
    • Receives an action from each actor in order of a list of actors
    • Executes the received actions
  • Implement basic player movement

Simple AI

  • Implement simple AI
  • Implement basic enemy movement

Combat

  • Add a game log
  • Add an attack action
  • Implement basic combat mechanics
func attack(source, target) -> void:
    if attackHits(source, target):
        applyHits(source, target)

func attackHits(source, target) -> bool:
    var result = roll(source.dex)
    if result < 0.25:
        return false
    return (source.dex - (target.dex * 0.5) + result) > 4

func roll(sides: int) -> float:
    var result = (rand() * rand()) * sides * 0.5
    if result > (sides - 0.5):
        result += roll(sides)
    return result

Attributes

  • Add player attributes
  • Add enemy attributes

Implement AStar

Godots AStar2D implementation seems unnecessarily complex for a roguelike game with simple grid based movement.

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.