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 15:00, herchellann302
To check whether your writing is clear , you can
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, joybeth9591
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, LuckyCharms988
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
image
Computers and Technology, 24.06.2019 18:20, mshepherdmiller
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number. write a recursive java method that implements this algorithm. it will accept a value of int and return a string with the appropriate binary character representation of the decimal number. my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
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: