[SOLVED] CSCE693 Homework2- skeleton “game_logic

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon a2-9w5y6v.zip (612.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)
  1. Complete the skeleton “game_config” project so that it enhances the provided game_loop example by reading the provided Lua script “config.lua” which defines initial SDL2 window dimensions (x, y, width, and height). Use the Lua API to access this file – do not use the sol2 templates.
  2.  Complete the skeleton “game_logic” project so that it enhances the provided

“game_loop” example by reading the Lua script “logic.lua” which defines a function called “update()”. The C++-based update() function should call the Lua update() function which increments a counter variable and returns it. Print this value (in the C++ code) to the console, just like the original “game_loop” example. Expected output should be the current value of the counter that the Lua interpreter is incrementing (e.g., 1, 2, 3, 4…).

  • a2-9w5y6v.zip