Giter VIP home page Giter VIP logo

entity-simulation's Introduction

Entity Simulation

issues forks stars license

Entity simulator for simulated experiments

Table of Contents

Requirements

Program Function Required Download
SFML Media Rendering Library โœ… ๐Ÿ’พ

Installation

Migrate to your desired download location on your local machine using (either) your console or terminal, and download this repository to your system using git clone:

git clone https://github.com/Justin-Byrne/Entity-Simulation.git

Compile project, under (root)/Entity Simulation/

> make
> make clean

Usage

Linux/Mac

> ./Entity-Simulation

Windows

> Entity-Simulation

Configuration

You can toggle and augment various configuration options under config.hpp

// DEBUG
#define DEBUG_ROTATE                   0
#define DEBUG_BODY                     1
#define DEBUG_SENSE                    0
#define DEBUG_SIGHTLINE                0
#define DEBUG_STEPS                    1
#define DEBUG_UNIFORM_GRID             0
#define DEBUG_ENTITY_PRINT_ATTRIBUTES  0

// ENTITY ATTRIBUTE CAPS
#define SIZE_CAP                      10    // 10
#define SENSE_CAP                     40    // 40
#define HEALTH_CAP                    20    // 20
#define WALK_SPEED_CAP                20    // 20
#define WALK_DISTANCE_CAP             70    // 70
#define STAMINA_CAP                   20    // 20
#define STAMINA_REFACTOR_CAP          10    // 10

// PROGRAM
#define WINDOW_TITLE "Entity Simulation"
#define WINDOW_WIDTH                 800
#define WINDOW_HEIGHT                800
#define ENTITY_MAX                   200
#define STEP_MAX                      25
#define SEEN_MAX     ( ENTITY_MAX / 25 )
#define LINE_SEGMENTS                  5
#define FRAME_RATE                    30
#define CELL_SIZE                     50

#define NULL_COLOR          colors::null

Examples

Body

Body

Rotate

Rotate

Sense

Sense

Sightline

Sightline

Steps

Steps

Uniform Grid

Uniform Grid

Body & Steps

Body & Steps

Body, Steps, and Sense

Body, Steps, and Sense

Support

Please open an issue for support.

Structure

. (root)
โ”‚
โ”‚
โ”œโ”€โ”€ Entity Simulation
โ”‚   โ”‚
โ”‚ย ย  โ”œโ”€โ”€ include/
โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ”œโ”€โ”€ math/
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ math.hpp
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ”œโ”€โ”€ static/
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ colors.hpp
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ states.hpp
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ””โ”€โ”€ structs/
โ”‚   โ”‚   โ”‚       โ”‚
โ”‚   โ”‚   โ”‚       โ”œโ”€โ”€ custom/
โ”‚   โ”‚   โ”‚       โ”‚   โ”‚
โ”‚   โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ attributes.hpp
โ”‚   โ”‚   โ”‚       โ”‚   โ”‚
โ”‚   โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ entity.hpp
โ”‚   โ”‚   โ”‚       โ”‚
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ general/
โ”‚   โ”‚   โ”‚           โ”‚
โ”‚   โ”‚   โ”‚           โ”œโ”€โ”€ angle.hpp
โ”‚   โ”‚   โ”‚           โ”‚
โ”‚   โ”‚   โ”‚           โ”œโ”€โ”€ cell.hpp
โ”‚   โ”‚   โ”‚           โ”‚
โ”‚   โ”‚   โ”‚           โ”œโ”€โ”€ color.hpp
โ”‚   โ”‚   โ”‚           โ”‚
โ”‚   โ”‚   โ”‚           โ”œโ”€โ”€ matrix.hpp
โ”‚   โ”‚ย ย  โ”‚           โ”‚
โ”‚   โ”‚   โ”‚           โ””โ”€โ”€ point.hpp
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚ย ย  โ”œโ”€โ”€ simulation/
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ””โ”€โ”€ simulation.hpp
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚ย ย  โ”œโ”€โ”€ utilities/
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ”œโ”€โ”€ general/
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ display.hpp
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ RNG.hpp
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ scale.hpp
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ uniform_grid.hpp
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ”œโ”€โ”€ renderer/
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ SFML_utilities.hpp
โ”‚   โ”‚   โ”‚   โ”‚
โ”‚ย ย  โ”‚   โ”‚   โ””โ”€โ”€ specific/
โ”‚   โ”‚   โ”‚       โ”‚
โ”‚   โ”‚   โ”‚       โ””โ”€โ”€ step_colors.hpp
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ”œโ”€โ”€ config.hpp
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ headers.hpp
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ libs/
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ SFML/     (SFML Raw Header Files)
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ main.cpp
โ”‚   โ””โ”€โ”€ Makefile
โ”‚
โ”œโ”€โ”€ images/           (Media files...)
โ”‚
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md

Copyright

Byrne-Systems

== Byrne-Systems ยฉ 2022 - All rights reserved. ==

entity-simulation's People

Contributors

justin-byrne avatar

Stargazers

 avatar Siddhu avatar  avatar Clayton Kehoe avatar cbhutad avatar

Watchers

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