Question: Need help programing this in C. Here is that code that my teacher gave me to start with and assign here in the pictures below.
Need help programing this in C. Here is that code that my teacher gave me to start with and assign here in the pictures below.

#include "console "h" // Definition of the Scene stut type struct Scene { 2 TODO: add fields // Function prototypes void scene_init (struct Scene *s) void scene_render (const struct Scene *s) void scene_update (struct Scene *s) 0 Animatation delay (.1s) #define ANIMATION. DELAY (I000/10) 2 int main (void) struct Scene myScene: TODO: add call to scene init int keepgoing 1; - while (keep going _1) /I clear the off-screen display buffer cons clear screen ) // render the scene into the display buffer TODO: add call to scene render :2 :3 /copy the display buffer to the display cons update () // pause cons_sleep_ms (ANIMATION DELAY); / update the scene 7 TODO: add call to sceneupdate // see if the user has pressed a key int key-cons_get_keypress if (key !- 1) 2 keep going0 return 0 7 II TODO: add definitions for scene_init, scene_render, and sceneupdate #include "console "h" // Definition of the Scene stut type struct Scene { 2 TODO: add fields // Function prototypes void scene_init (struct Scene *s) void scene_render (const struct Scene *s) void scene_update (struct Scene *s) 0 Animatation delay (.1s) #define ANIMATION. DELAY (I000/10) 2 int main (void) struct Scene myScene: TODO: add call to scene init int keepgoing 1; - while (keep going _1) /I clear the off-screen display buffer cons clear screen ) // render the scene into the display buffer TODO: add call to scene render :2 :3 /copy the display buffer to the display cons update () // pause cons_sleep_ms (ANIMATION DELAY); / update the scene 7 TODO: add call to sceneupdate // see if the user has pressed a key int key-cons_get_keypress if (key !- 1) 2 keep going0 return 0 7 II TODO: add definitions for scene_init, scene_render, and sceneupdate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
