{"id":16134477,"url":"https://github.com/mrspeaker/basicinstinct","last_synced_at":"2025-06-26T16:36:48.220Z","repository":{"id":137019107,"uuid":"43064051","full_name":"mrspeaker/basicinstinct","owner":"mrspeaker","description":"basic instinct: the game","archived":false,"fork":false,"pushed_at":"2015-10-17T14:57:48.000Z","size":732,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T15:51:44.205Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrspeaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-24T11:57:51.000Z","updated_at":"2017-03-11T04:46:45.000Z","dependencies_parsed_at":"2023-03-13T13:12:10.259Z","dependency_job_id":null,"html_url":"https://github.com/mrspeaker/basicinstinct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrspeaker/basicinstinct","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrspeaker%2Fbasicinstinct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrspeaker%2Fbasicinstinct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrspeaker%2Fbasicinstinct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrspeaker%2Fbasicinstinct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrspeaker","download_url":"https://codeload.github.com/mrspeaker/basicinstinct/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrspeaker%2Fbasicinstinct/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262103214,"owners_count":23259414,"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":[],"created_at":"2024-10-09T22:49:03.117Z","updated_at":"2025-06-26T16:36:48.183Z","avatar_url":"https://github.com/mrspeaker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Listings: the game\n\n\n## notes:\n\n--- broken/next todos:\neditor gets into self-edit break (key thing)\nsnap to grid\ngroup and convert to \"prop\"\ncollisions\nten different flippin event systems...\nsensors don't un-listen.\n----\n\n* git messages could be clues\n* make things proc gen? and scriptable with ItsBasic\n* everything in the world can be controlled with ItsBasic.\n  name things?\n* JSON =\u003e itsbasic code and ITSBasic =\u003e JSON!\n* goal is not to teach BASIC: player should alwyas be out of their depth, and has no help from anyone else in the gaem. Fumbling always forward and learning stuff the hardest of hard ways.\n* World can be controlled by BASIC - but also... moving things in the world could set memory locations in the computer!\n\n## Rules engine? how could it work?\n\n*** Just copy Blender idea...\nSensors -\u003e Controllers -\u003e Actuators\n\nEG: Always sensor. The Always sensor is used for things that need to be done every logic tick, or at every x logic tick, or at start-up (with Tap).\n\n\nvar always5 = Always(5 ticks) -\u003e\nvar always3 = Always(3 ticks) -\u003e\n\ncube\n  : always3 -\u003e |\n               + -\u003e toggle (20)\n  : always5 -\u003e |\n\n  --- produces stream: fizzbuzz\n\nProperty sensor would be good: The Property sensor detect changes in the objects properties\n\nclass Sensor {}\nclass Always extends Sensor {\n  constructor ()\n}\n//class Property extends Sensor()\n\n\n\n####\n\nThings in game...\n\n* player\n\n* program. onload, onparse, onstart, onbreak?\n  * hasAST, assertIsTrue...\n\n  if(assertIsTrue(prog, x=1))...\n\nif Player enters bedroom\n  * if has diskDriveInInventory -\u003e addDiskDriveToComputer;removeDiskDriveFromINventory.\n\n```js\ndocument.onload = trigger('WorldCreate');\n\nrule: event: 'WorldCreate', actions: 'GoToBedroom'\n\ndocument.on('GoToLocation', (data) =\u003e {\n  game.scene = new Room(data);\n});\n\nclass Room(data) { trigger(data.name + 'RoomLoaded') }\n\nevent: 'BedroomLoaded',\n\n\n```\nonWorldCreated =\u003e add(ClassicAchievement)\n\n1. ClassicAchievement: astIsClassic.\n   [HP++, bedroomDoorOpens, remove(LockedBedroom), add(ClassicAchievement+)]\n\n2. LockedBedroom: triggerDoor\n   [msg(\"Not 'til you do your homework\")]\n\n3. ClassicAchievement+: astIsClassic + string is different\n   [HP++]\n\n4. AddQuizProg: triggerMag1\n   [msg(\"has been added!\"), addToGlobalProgBook(quizCode), add(QuizAchievement)]\n\n5. QuizAchievement: astIsQuiz\n   [HP+, triggerGlitchTeaser]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrspeaker%2Fbasicinstinct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrspeaker%2Fbasicinstinct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrspeaker%2Fbasicinstinct/lists"}