Skip to content

AbelPhilippe/PhysarumCPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

What is Physarum?

- Physarum, or more precisely Physarum polycephalum, is an acellular slime mold, or myxogastrid. Myxogastrids are closely related to the cellular slime molds, or dictyostelids, including the well known Dictyostelium discoideum. Physarum is more distantly related to the protostelids (together these groups are discussed as the eumycetozoans, or ‘true’ slime molds) and very distantly related to other species also called slime molds, for example acrasids.

Requirements

  • C++ compiler (g++)
  • OpenGL
  • GLFW

Clone Repository

git clone -v https://github.com/AbelPhilippe/PhysarumCPP
cd PhysaryumCPP

Install.sh

chmod +X install.sh
./install.sh

If you use VScode debugger: Tasks.json (you need use g++ compiler)

{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "C/C++: gcc build active file",
            "command": "/usr/bin/g++",
            "args": [
                "-fdiagnostics-color=always",
                "-g",
                "${workspaceFolder}/*.cpp",
                "${workspaceFolder}/glad/*.c",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}",
                "-lGL",
                "-lglfw"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "Task generated by Debugger."
        }
    ],
    "version": "2.0.0"
}

Build 1: CMAKE

mkdir build
cd build
cmake ..
cmake --build .
./sim

Build 2:

Linux:

g++ main.cpp glad/glad.c -o sim -lglfw -lGL -ldl

Windows:

g++ main.cpp glad.c -o sim.exe -lglfw3 -lopengl32 -lgdi32

------------------ To Do - Ideas ------------------

  • Colours
  • Game concept
  • Output modeling

Releases

No releases published

Packages

 
 
 

Contributors

Languages