COS10009 Lab 4.pdf - Swinburne University of Technology...

This preview shows page 1 - 2 out of 3 pages.

Swinburne University of Technology Sarawak COS10009 Introduction to Programming – Semester 2 / 2020 Lab 4 Pass Tasks Submission Date : 9 th October 2020 (Friday) Graphical User Interface (Lab 04) Pass Task 4.1 Shape Drawing Task: Create a program that calls procedures to draw a picture to a window. To Do: For this task you will create a program that draws a scene using primitive shapes (triangles, rectangles, and circles). The goal of this exercise is to learn a little about how to create a program using either the Gosu libraries. Gosu is a development environment that makes it easy to create programs that use graphics, sounds, animations, networking, and other aspects relevant to creating small interactive games. 1. Download the gosu_shapes.rb from Pass Task 4 Resources folder. This contains some example code you can use to get started. 2. Extract the zip file to your code directory (e.g. Documents/Code) 3. Modify either of the programs so as to produce your desired drawing.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture