{"id":20927685,"url":"https://github.com/thomaslachaux/run","last_synced_at":"2025-07-07T19:10:05.755Z","repository":{"id":135726796,"uuid":"170766081","full_name":"ThomasLachaux/Run","owner":"ThomasLachaux","description":"Projet fait dans le cadre de l'UE Microprocesseurs","archived":false,"fork":false,"pushed_at":"2019-05-19T18:16:30.000Z","size":9431,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T18:42:28.871Z","etag":null,"topics":["projet","run"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThomasLachaux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-14T22:19:48.000Z","updated_at":"2019-05-19T18:16:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b175cdd7-92ac-4906-9452-1842596b8a6d","html_url":"https://github.com/ThomasLachaux/Run","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasLachaux%2FRun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasLachaux%2FRun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasLachaux%2FRun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasLachaux%2FRun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasLachaux","download_url":"https://codeload.github.com/ThomasLachaux/Run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243321246,"owners_count":20272639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["projet","run"],"created_at":"2024-11-18T20:52:24.121Z","updated_at":"2025-03-13T01:29:10.238Z","avatar_url":"https://github.com/ThomasLachaux.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\n\n\n# Run !\n\n## Pour jouer\nTélécharger le projet en cliquant sur *Clone or Download \u003e Dowload ZIP*.\nL’exécutable se trouve dans le dossier *output/Run.exe*\n\n## Introduction\n\nLe projet à été codé à sur l'IDE JetBrains CLion avec MinGw et CMake avec la library SDL2. **Une version du projet en CodeBlocks est disponible dans le dossier codeblocks/**\n## Structure du projet\n\n ```\n├───assets/ : Images et polices\n├───cmake-build-debug : Build crée par CMake\n├───codeblocks/ : Projet sous code blocks\n├───include/ : Tous les fichiers .h\n├───lib/ : Tous les fichiers .lib\n├───output/ : Tous les fichiers .dll plus l'executable\n├───src/ : Tous les fichiers sources en .c\n├───CMakeLists.txt: Fichier de configuration de CMake, précise à CMake où trouver les .dll, .h, .lib, .c...\n├───synchro-codeblocks.bat : Executer ce fichier replique les fichiers sources du projet CLion vers Codeblocks\n```\n\n## Comment est organisé le code ?\nLe code est organisé sous plusieurs fichiers de la façon linéaire suivante.\n`main -\u003e Game -\u003e World -\u003e Body`\nConcrètement,\n- Le main gère le Game\n- Le Game gère le World\n- Le World gère des Bodies\n\nJ'ai essayé (au mieux ^^) d'implémenter la Programmation Orienté Objet en tant que paradigme.\n\n## Dépendances\n- [CMake](https://cmake.org) *(Non nécessaire pour compiler avec Code::Blocks)*\n- [MinGW](http://www.mingw.org/)\n\n## Compilation\n\n### Avec Code::Blocks\nAvec pour ouvrir le projet avec codebloks, ouvrir le `.cpb` situé dans le dossier `codeblocks/`.\n\n### Avec CLion\nOuvrir le projet avec CLion\nOuvrir les Settings \u003e Build \u003e Toolchains et ajouter MinGW en Toolchains.\nSi Git est présent dans la variable PATH de l'ordinateur, écrire dans le champ Settings \u003e Build \u003e CMake \u003e CMake Options la valeur `-DCMAKE_SH=CMAKE_SH-NOTFOUND`\n\n### En ligne de commande\n\n*MinGW et CMake soient installé et placé dans la variable `PATH` de l'ordinateur.*\n\n#### Commandes pour créer le makefile\n```\nmkdir build\ncmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SH=CMAKE_SH-NOTFOUND -G \"CodeBlocks - MinGW Makefiles\" ..\n```\n#### Commande pour compiler le projet\n```\nmingw32-make\n```\n\n![Capture](https://raw.githubusercontent.com/ThomasLachaux/Run/master/assets/rules.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaslachaux%2Frun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomaslachaux%2Frun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaslachaux%2Frun/lists"}