• Home
  • Goldsmiths University of London
  • Introduction to Programming I
  • Code Elegance and Game Development

Code Elegance and Game Development

Week 6 - Variables, Objects, and Interaction Week 6 @ Material ITP1 Notes - Ali Gunduz. pdf V Lesson 3.4 - Code Philosophy: The Elegant Coder V Elegant Code: . As programmers, we know that codes must be clever and concise. However, it must also be elegant. Perfection is achieved not when there is nothing to add, but when there is nothing left to take away - Antoine Saint Exupery · To make your code elegant, one must make their code readable and conventional (e.g., variable names and identation) : Do Well named variables Unused variables Good use of objects Unused objects Logically organized code Unused functions Explanatory Comment Commented block of code Don't Lesson 3.5 - Game Project 2: Game Character V Game Project Part 2a: Game Character Week 6 - Variables, Objects, and Interaction 1 · The use of different shapes to create a character the is standing, jumping up, walking left and right, and jumping left and right. //The Code provides all the shape the was used: 7 Game Project Part 2b: Using Variables . The use of variables in the first part of the Game project to easily adjust the positions of the cloud, tree, mountain, canyon, and collectibles. //Code will be added soon Lesson 3.6 - Continuing with Sleuth Case 301: The Case of the Python Syndicate . Focuses on the declaration and initiation of variables and objects using the var command to put the pictures of the suspects in their respective place. Case 302: The Case of the Slippery Minsky Brothers . Focuses on the increment and decrement of the spotlights position to determine where the crooked are. 7 Case 303: The Case of the Crooked Attorney . Focuses on the events and math functions to return a specific digit of the vault. Specifically, initializing a value or incrementing and decrementing it. Source Code : . All the source code for the Sleuth cases are found in my Google Drive. Week 6 - Variables, Objects, and Interaction 2 Sleuth Cases - Google Drive https://drive. google. com/drive/folder s/1kIEzidDaO7iOQ8RE9pArNeh6jm95Vzaq?usp=s haring Week 6 - Variables, Objects, and Interaction 3