Computers and Technology

Why is it useful to understand coding fundamentals even if you work in a game design role that doesn’t traditionally write code?
imagine you need to create a series of “bouncepads” for a platform game—a set of platforms that propel the character high into the air, with a challenge of having the player move from pad to pad before landing on a normal platform. describe an efficient way to set up that scenario, using things like conditional logic, queries, pre-fabs, etc. (you don’t need to include the specific code for the “bounce”
why would a programmer use a “public” variable for something like speed? provide at least two other examples of variables a developer would likely make “public.”
using these parameters and the logic statement, answer the following questions:

a= player has less than 10 health points (hp)
b= goblin has at least 10 hp
c= no other target (non-player characters -- npc) has less than 10 hp
d= goblin attacks the player
e= goblin drinks a potion
f= goblin attacks an npc

logic statement: if a and b are true, then if c is true, then d.

when would the enemy attack a player? change the parameters and the conditional logic statement to describe a situation where the enemy would drink a potion if they wouldn’t otherwise be able to kill a hero or npc in one hit (the enemy does 9 hp of damage with an attack).

review the following code for different random number generators:
random rnd = new random();
int month = rnd. next(1, 13); // 1 < = month < 13
int dice = rnd. next(1, 7); // 1 < = dice< 7
int card = rnd. next(53); // 0 < = card< 53
using what you know of programming, what do each of the three options indicate they are doing? what does the “big” largest number indicate about the way this coding language treats . rnd and maximums? when might you want a random number generator in a game? the unit discusses the weaknesses of copy-and-pasting code: it leads to errors when you forget to change a value or miss part of the section you meant to copy. can you think of any other risks to “copy pasta? ” do you agree with the unit’s argument? why or why not?

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:30, kimhoss2
What are ways to switch windows in excel? check all that apply. on the status bar, click the windows button, and then click the file name. on the task bar, click to display the excel jump list, and then click the file name. on the view tab, in the window group, click switch windows, and then click the file name. on the review tab, in the viewing group, click files, and then click the file name.
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, shaheedbrown06
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, cuki96
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
image
Computers and Technology, 24.06.2019 01:30, Cinders13
How can you make your column headings stand out?
Answers: 1
Do you know the correct answer?
Why is it useful to understand coding fundamentals even if you work in a game design role that doesn...

Questions in other subjects: