[SOLVED] 代写 game ruby Faculty of Science, Engineering and Technology

30 $

File Name: 代写_game_ruby_Faculty_of_Science,_Engineering_and_Technology.zip
File Size: 593.46 KB

SKU: 0551937797 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Faculty of Science, Engineering and Technology
Introduction to Programming
HD Task 4.4: Maze Creation
Overview
This program will allow you to use the Gosu cycle to create a simple maze on the screen.
Purpose: Task:
Submit To: Time:
Resources:
Modify a Ruby program which uses references.
Modify the provided code in the Gosu window initialize() procedure(method).
Doubtfire when complete
This task should be started in your fourth lab class and submitted for feedback before the start of week 11.
Sobkowicz, M 2015 Learn game programming with Ruby : bring your ideas to life with Gosu, The Pragmatic Bookshelf (See chapter 7 for help the grid aspect of the Maze Task)
Gosu Ruby Documentation Gosu site
Gosu game video tutorial
Submission Details
You must submit the following files to Doubtfire:
■ Basic gosu_maze_creation.rb source code
■ Screenshot of the window showing the execution of your program.
Make sure that your task has the following in your submission:
■ The program must allow the user to create a maze on the screen by modifying code in the appropriate sections.
■ Code must follow the Ruby coding convention used in the unit (layout, and use of case).
■ The code must run and the screenshot show it working.
■ This program does NOT need to have a procedure for main – the Gosu cycle is the main cycle.
■ Your program must have the indicated local variables and use them appropriately.

Introduction to Programming HD Task 4.4: Maze Creation
Instructions
Use the code provided (from this task’s resources in Doubtfire) to get started. You must complete the code so that it works as follows:
1. The code in the initialize() procedure of the Gosu window should be completed to set up cells that are connected to each other with variables joining each cell to its neighbours (using references).
2. The user should be able to left click on cells on the screen to create mazes (and later in the Maze Search task we will use recursion to find a path through the maze).
3. Each cell clicked on should turn yellow.
A created maze may look something like:
Submit your completed code and screen shot to Doubtfire.
End of Task

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 game ruby Faculty of Science, Engineering and Technology
30 $