# Code a 2-D game.

## Definition

Coding should determine and create- objects
- behaviors of objects
- environment (background, audio, colors)
- scoring and win/lose conditions
- instructions for players/end users, with how-to-play and help screens
- credits.

## Related Standards of Learning

## Mathematics

### AFDA.1

The student will investigate and analyze linear, quadratic, exponential, and logarithmic function families and their characteristics. Key concepts include

- domain and range;
- intervals in which the function is increasing or decreasing;
- absolute maxima and minima;
- zeros;
- intercepts;
- values of a function for elements in its domain;
- connections between and among multiple representations of functions using verbal descriptions, tables, equations, and graphs;
- end behavior; and
- vertical and horizontal asymptotes.

### AII.3

The student will solve

- absolute value linear equations and inequalities;
- quadratic equations over the set of complex numbers;
- equations containing rational algebraic expressions; and
- equations containing radical expressions.

### COM.1

The student will design and apply computer programs to solve practical problems in mathematics arising from business and applications in mathematics.

### COM.2

The student will design, write, document, test, and debug, a computer program.

### COM.4

The student will design an algorithm to solve a given problem.

### COM.6

The student will translate mathematical expressions into programming expressions by declaring variables, writing assignment statements, and using the order of operations.

### COM.10

The student will design and implement the input phase of a program, which will include designing screen layout, getting information into the program by way of user interaction and/or file input, and validating input.

### COM.11

The student will design and implement the output phase of a computer program, which will include designing output layout, accessing available output devices, using output statements, and labeling results.

### COM.12

The student will design and implement computer graphics to enhance output.

### COM.15

The student will define and use appropriate variable data types that include integer, real (fixed and scientific notation), character, string, Boolean and object.