{"id":20314325,"url":"https://github.com/normandy72/quiz-master","last_synced_at":"2026-05-07T22:39:27.548Z","repository":{"id":65237051,"uuid":"588619162","full_name":"Normandy72/Quiz-Master","owner":"Normandy72","description":"A \"Quiz Master\" game. Complete C# Unity Game Developer 2D.","archived":false,"fork":false,"pushed_at":"2023-01-14T20:12:44.000Z","size":4120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-04T22:53:57.750Z","etag":null,"topics":["csharp","csharp-code","game","game-development","gamedev","unity","unity2d","unity2d-game"],"latest_commit_sha":null,"homepage":"","language":"ShaderLab","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/Normandy72.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":"2023-01-13T15:10:21.000Z","updated_at":"2024-03-19T03:54:59.000Z","dependencies_parsed_at":"2023-01-15T19:15:29.028Z","dependency_job_id":null,"html_url":"https://github.com/Normandy72/Quiz-Master","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Normandy72/Quiz-Master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FQuiz-Master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FQuiz-Master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FQuiz-Master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FQuiz-Master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Normandy72","download_url":"https://codeload.github.com/Normandy72/Quiz-Master/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Normandy72%2FQuiz-Master/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32759445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csharp","csharp-code","game","game-development","gamedev","unity","unity2d","unity2d-game"],"created_at":"2024-11-14T18:14:49.670Z","updated_at":"2026-05-07T22:39:27.533Z","avatar_url":"https://github.com/Normandy72.png","language":"ShaderLab","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ~ Unity ~\n## UI Canvas\n* UI = User Interface.\n* Text, buttons, sliders, menus, etc.\n* UI elements live on the \"Canvas\".\n* The canvas generally exists in \"Screen Space\" and is mostly separate from the game world.\n* You can have multiple canvases.\n***\n# ~ C# ~ \n## What Is A Scriptable Object?\n* It's just a data container.\n* Keeps the data out of our scripts.\n* Help up save memory by storing data in one place.\n* They don't need to be attached to game objects.\n* They're lightweight and convenient.\n* Act as a template for consistency.\n\n#### Examples\n* Weapon stats in an RPG.\n* Card data in a CCG.\n* We will be using them to store question data:\n    * Question text\n    * Possible answers.\n    * Correct answer.\n\n## Getter Methods\n* Gives a script read-only access to a private variable.\n* Protects the contents of a private variable.\n\n## What is an Array?\n* A grouping of multiple variables of the same type.\n* Each item stored in an array is called an 'element'.\n* Each element can b accessed by its index number.\n* Counting starts at zero.\n\n`int[] oddNumbers = {1,3,5,7,9};`\n\n`int[] oddNumbers = new int[5];`\n\n## What is a Loop?\n* Repeat an event until some condition is met.\n* Very powerful for counting or iterating.\n* One type of loop is called a 'For Loop'.\n* Loop a set number of times.\n\n#### For Loop\n```\nfor(int i = 0; i \u003c n; i++)\n{\n    // do stuff\n}\n```\n\n`int i = 0` - runs once before the code block is executed; sets up the iterator.\n\n`i \u003c n` - defines the loop condition; tells the loop when to stop. Be careful of infinite loops!\n\n`i++` - executes at the end of every loop; used to increment or decrement the iterator.\n\n## What is a List?\n* They are kind of arrays.\n* A grouping of multiple variables of the same type.\n* Each item stored in a List is called an 'element'.\n* Each element can be accessed by its index number.\n* Counting starts at zero.\n* They are mutable - meaning we can change their size.\n#### Syntax\n##### Array\n`int[] oddNumbers = new int[5];`\n##### List\n`List\u003cint\u003e oddNumbers = new List\u003cint\u003e();`\n#### Useful Methods \u0026 Properties\n* Check item count: `List.Count`\n* Check if item exists: `List.Contains(3)`\n* Add an item: `List.Add(3)`\n* Remove an item: `List.Remove(3)`\n* Remove item at index: `List.removeAt(0)`\n* Clear the list: `List.Clear()`\n\n***\n# ~ Quiz Questions ~\n1. What is a correct syntax to output \"Hello World\" in C#?\n    * `cout \u003c\u003c \"Hello World\";`\n    * `print(\"Hello World\");`\n    * `Console.WriteLine(\"Hello World\");` (correct)\n    * `System.out.println(\"Hello World\");`\n2. How do you insert comments in C# code?\n    * `// this is a comment` (correct)\n    * `# this is a comment`\n    * `/* this is a comment`\n    * `@ this is a comment`\n3. Which data type is used to create a variable that should store text?\n    * `myString`\n    * `str`\n    * `string` (correct)\n    * `Txt`\n4. How do you create a variable with the numeric value 5?\n    * `num x = 5;`\n    * `let x = 5;`\n    * `x = 5;`\n    * `int x = 5;` (correct)\n5. Which operator can be used to compare two values?\n    * `\u003c\u003e`\n    * `==` (correct)\n    * `=`\n    * `\u003e\u003c`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Fquiz-master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormandy72%2Fquiz-master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormandy72%2Fquiz-master/lists"}