Skip to content

Justin-Byrne/Entity-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

Entity Simulator for Simulated Experiments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published