itch.io is community of indie game creators and players

Devlogs

Week 8

CodeProgress
A downloadable project

This week we continued our Pyramid project by combining it with out window UI and asking a user to input the size(width&depth) into a field which would then build the pyramid, the larger the input the larger the pyramid.

this is the initial code we had when it first started working, it creates a function called pyramid with two arguments (height&size) height determines the location the cube is created and the size is a combination of width and depth, we ask the user for the size input and then put it into a variable called "text1"  which is the printed as an output string then converted into an integer to then be used in a loop which repeats by increasing height by one and decreasing size by one  creating a perfectly even pyramid.

this is the reduced code that simply asks for user input instead of adding it as an option on a larger window

Leave a comment