Code Example 1 Love.Load

This is the most important part of the program. Everything that happens in the game needs the variables created upon this section of the code. For those not familiar with a love program, the function love.load() is only ever called once. This allows for the creation of every variable needed. Also a lot of computation can occur during this function so that the actual game runs faster. I personally added a lot of code to this section so that the actual game functions faster. I’m not sure if I needed to create all these variables here but it helps me keep track of every variable I am using. The largest and most important part o this code is the creation of the map the game occurs, the creation of each individual enemies and finally the creation of the towers. When a later version of the game is complete all that information will come in from another section of the program. So its a lot to take in but I think the code below gives a valuable insight to how this game works. Also I would like to apologize for the format of the code, all my indention disappeared.

 

function love.load()
dif = 1 — amount of mountains
size = 32
–whx = love.graphics.getHeight()
whx = 600
wwy = 800
–wwy = love.graphics.getWidth()
wx = whx/ 16
wy = wwy/ 16

–set camera
camera:setBounds(0, 0, wwy, whx)

— creating tile array
tile = {}
tile16 = {}
tile32 = {}
if size >= 16 and size <= 64 then
for i =0, 14 do
tile[i] = love.graphics.newImage(i ..”tile”..size..”.png”)
end
for i = 0, 14 do
tile16[i] = love.graphics.newImage(i..”tile16.png”)
end
for i = 0, 14 do
tile32[i] = love.graphics.newImage(i..”tile32.png”)
end
end

–standard map grid
map = {
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },
{ 1, 3, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1 },
{ 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1 },
{ 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 2, 1, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1 },
{ 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
}

— creating standard random map
for i = 1, (wx + 1) do
map[i] = {}
for l = 1, wy do
int = math.random(0, 10)
if i == 1 then
map[i][l] = 1
elseif wx <= i  then
map[i][l] = 4
elseif l == wy then
map[i][l] = 1
elseif l == 1 then
map[i][l] = 4
elseif int >= dif then
map[i][l] = 0
else
map[i][l] = 1
end

end
end
–end standard random map

–create image map
map1 = {}
for i = 1, (wx + 1) do
map1[i] = {}
for l = 1, wy do
map1[i][l] = map[i][l]
end
end
–end second array map

ilz = 0 –RV location

–begin speical map
— 5 is dirt
— 6 is light water
–second array special colors
for i = 1, (wx +1) do
for l = 1, wy do
int = math.random(0, 7)
— draw dirt
if i ~= 1 then
if map1[i][l] == 1 and l ~= wy then    –make dirt
if map1[i][l + 1] ~= 1 then
map1[i][l + 1] = 5
end

if map1[i][l – 1] ~= 1 and (l-1) > 3 then
map1[i][l – 1] = 5
end
end
if map1[i][l] == 1 and l  ~= wy then
if i <= (wx – 1) and map1[i + 1][l] ~= 1 then
map1[i + 1][l] = 5
end
if i > 2 and map1[i – 1][l] ~= 1 then
map1[i – 1][l] = 5
end
end
end
–draw light water
if map1[i][l] == 4 then
if l == 1 and i <= wx then
if map1[i][l + 1] == 1 then
map1[i][l + 1] = 6
map[i][l + 1] = 0
else
map1[i][l + 1] = 6
end
elseif i > wx  and l ~= 1 then
if map1[i – 1][l] == 1 then
map1[i – 1][l] = 1
else
map1[i – 1][l] = 6
end
end

if int >= 2 and l == 1 then
if map1[i][l + 2] == 1 then
map1[i][l + 2] = 6
map[i][l + 2] = 0
else
map1[i][l + 2] = 6
end
elseif int >= 3 and i >= wx then
if map1[i – 2][l] == 1 then
map1[i – 2][l] = 1
else
map1[i – 2][l] = 6
end
end
end
end
end

–end speical map

–player varibles and enemy
zxp = 0    –player x postion
zyp = 0    –player y postion

exp = 0 — enemy x postion
eyp = 0 — enemy y postion

— add the player and hole
map[13][14] = 2

map1[16][wy – 1] = 8 — test hole
map1[17][wy – 1] = 8 — test hole
map[16][wy – 1] = 0 — test hole
map[17][wy – 1] = 0 — test hol
ilz = 16

number = 0
–tower array thing
tArr = {}
towerInt = 6
toff = 0
for i = 1, towerInt do
tArr[i] = {}
— differnt aspects of a tower
— 1 tile image number
— 2 attack
— 3 range of attack
— 4 speed of attack
— x and y are 5 and 6
— 7,8 will be chaning x and y stuff
— 9 will be if moving
— 10 will be if attacking
— 11 and 12 will be spots on menu
— 13 will be individual counter for time
— 14 will be type of attack
— if 14 is 1 then all around attack
— if 14 is 2 then single attack
— 15 will be amount of attacks or type of attacks
— 16 will be the amount of resources required
— 17 will be the thing benth its placement
— 18 will be the health of destroy able
— 19, 20 will be there
for l = 1, 20 do
tArr[i][l] = 0
if l == 4 then
tArr[i][l] = 35
elseif l == 5 or l == 11 then
–standard is 880
tArr[i][l] = 820
elseif l == 6 or l == 12 then
tArr[i][l] = 60 + toff
elseif l == 9 then
tArr[i][l] = false
elseif l == 10 then
tArr[i][l] = false
elseif l == 16 then
tArr[i][l] = 40
elseif l == 17 then
–having issue with this placement
tArr[i][l] = 100
elseif l == 18 then
tArr[i][l] = -1
end
end
toff = toff + 40
end
tArr[1][1] = 7    –yellow tower
tArr[1][2] = 15    –attack power
tArr[1][3] = 1    –range of attack
tArr[1][14] = 1  –attack all around
–tArr[1][15] = 1  –how long it
–tArr[1][4] = 35

tArr[2][1] = 9    –purple tower
tArr[2][2] = 5    –attack power
tArr[2][3] = 3    –range of attack
tArr[2][4] = 25    –speed of attakc
tArr[2][14] = 2    –can only attack once
tArr[2][16] = 35 –R amout balnce it

tArr[3][1] = 12 — new barrier
tArr[3][2] = 0
tArr[3][3] = 0
tArr[3][16] = 100 –R amount
tArr[3][18] = 100 –health of the tower

tArr[4][1] = 10 –trap hole
tArr[4][2] = 100
tArr[4][3] = 0
tArr[4][14] = 1
tArr[4][16] = 75 — amount of resourses balnce
tArr[4][18] = 100 — health of tower goes down

tArr[5][1] = 11
tArr[5][2] = 100
tArr[5][3] = 10
tArr[5][14] = 1
tArr[5][15] = 1     –dies in one turn
tArr[5][16] = 250 –amount of resoures need mess with

tArr[6][1] = 14 –this will be destroy stuff
tArr[6][2] = 0
tArr[6][3] = 0
tArr[6][15] = 1
tArr[6][16] = 0

barAr = {} –this will be the array of barriers

–end tower array

inPAr = {}
for    z = 1, 35 do
inPAr[z] = false
end

WeCost = {
{500, 200, 0},
{250, 300, 0},
{50, 200, 0},
{10, 150, 0}
}

–player array of info
— add arrays for mutiple eneimes
player = {
100, –health of player
{“chain saw”, “baseball bat”, “stick”}, –names of wepons
{50, 20, 5}, –close range attack
{1, 1, 2}, — close range ranges
{“sniper rifle”,”shotgun”, “pistole”}, –names of long rane
{200, 50, 5}, — long range attack
{6, 3, 4},    –range of long attacks
3, –equip axe
3    –equip gun
}

–inital enemy creation
— cant go over 35 something else wrong
place = false
enNum = 35 — create how many enemies
for i = 1, enNum do
place = false
while place == false do
int = math.random(1, 35)
–int = 34
if inPAr[int] == false then
map[int + 1][3] = 3
inPAr[int] = true
place = true
end
end
end

en = {}
for i = 1, enNum  do
en[i] = {}
for l = 1, 11 do
en[i][l] = 0
if l == 3 then
en[i][l] = 100
elseif l == 5 then
en[i][l] = “r”
elseif l == 6 then
en[i][l] = math.random(25, 35) –mess with
elseif l ==7 then
–play with this
targ = math.random(0, 10)
if targ <= 8 then
en[i][l] = 8
else
en[i][l] = 2
end
elseif l == 9 then
en[i][l] = {}
for w =1, 2 do
en[i][l][w] = 0
end
elseif l == 10 then
en[i][l] = false
elseif l == 11 then
–en[i][l] = math.random(5, 10)–maybe too strong
if en[i][7] == 2 then
en[i][l] = math.random(4, 8)
else
en[i][l] = math.random(1, 5)
end

end
–one is x cord
–two is y cord
–three is health
— four is Not in right dir
— five is dir
— six is speed
— seven should be the target of the enemy
— 8 will be the timer for each
— 9 will be array cords of the goal
— 9 1 is the x distance
— 9 2 is the y distance
–10 will be if met goal bol
–11 will be how much their attack is
end
end

–enemy index varible
enInV = 1

for i = 1, #map do
for l = 1, #map[i] do
if map[i][l] == 2 then
zxp = l
zyp = i
end
if map[i][l] == 3 then
exp = l
eyp = i
— add enemys postions to array
en[enInV][1] = eyp
en[enInV][2] = exp
if enInV >= 35 then
enInV = 1
else
enInV = enInV + 1
end

end
end
end

— end enemy creation

— enable held keys
love.keyboard.setKeyRepeat(10, 200)

xs = 0    –map creation
ys = 0    –map creation
–es = 1    — enemy index

temp2 = 0 — storing temp numbs

Ndir = 0 — not direction enemy counter

counter = 0 — counter for color placements

time = 0 — enemy time
time2 = 0 — tower time

Resources = 2000
zoom = false
pause = true — start true
FirstPause = true
space = false
MousePressed = false    –if mouse is pressed
shortA = false    — if short attack is true
longA = false    — if long attack is true
mousEE = false — if the mouse is on an enemy
InMenu = false    — in the menu
InYellow = false     — in the tower
InPurple = false     — in the second tower
towerAttack = false    — same as bellow
towerA = 0    — if towers are attacking
tAmount = 0 –Keep track of the amount of towers
RvHealth = 1000 — rv health and stuff
RvAttack = false –if ens attacking lower rv health
FastF = false — fast forwarding enemys and towers
fastS = 35 — enemy speed and such
enCounter = 0
NewGame = false –if new game needed
EquipM = false –equip menu pause this
TowerM = false

text = 0
–spacePr = false

oldTower = 100

–love.graphics.newFont(20)

— u1, r1, l1, d1
m1 = 100
u1 = 100
r1 = 100
l1 = 100
d1 = 100
lowest12 = 100
small = false –need to keep
singleAt = false

–temp10 = 100

ofsetX = 0 — ofset for mouse x
ofsetY = 0 — ofset for mouse y

CMI = 100 — Current Mouse map index
CX = 100
CY = 100

Mx = 0
My = 0

–do first path finding
for w = 1, enNum do
PathFinding(w)
end
end

Autobotography Example – Ancestry.com

Ancestry.com is  a great example of autobotography. It allows the user to define them selves through the act of understanding where they came from. Users find out who they are related to through the site and for the most part they discover things the users didn’t know. It uses a central sever that allows for all users to interact. For some people the sites becomes a biography but for others, the people finding their long lost family members are forging their own autobiography. This site really creates a permanent sense of self because who your family never changes.

 

Reaction to Edge of Art Chapter 1

Code as a Muse.

 

This chapter seemed to focus on the use of code in an artistic sense. Code is a tool for creation that allows for anything to happen. This chapter gave a wide variety of different good and bad uses of code in order to demonstrate how code could be used. Some projects were interactive while others just allowed for the creation of art in a more tradition sense. The fractal pieces were very interesting because of how they were designed and implemented so well. Just the thought of fractals is very interesting. To see something so complex but still so simple being made would be very interesting. Other sections of the chapter focus on using code on not just what it can do but what a user can exploit it to do. Sometimes using code to do something it was meant to do, produces the most interesting results. The interactive web applications were much more relevant to me at the moment because of what I know of making web sites and such. The shredder itself is concept which takes apart a site and rebuilds it with its own detentions. Doing such a thing outside of using code would be ridiculous.

Theater of the Oppressed, Augusto Boal

 

For the most part, the most severe consequence for for Boal of this interactive techniques is death. In almost every example death would have been there worst punishment. Like in the example with the poor woman and the love letters she could have easily killed her husband but then the lesson never would have been learned. For the most part this interactivity allows for the truth about humanity to come out. People like to behave with out consequences and that is exactly what this interactivity allows them to do.

Know the body” is a technique in Boal’s theater of the oppressed in which the spec-actor become more familiar with their bode. They come to realize what they can really do with it and not just what is expected of them. It helps teach people what a human body can actually accomplish. The body also speaks so that others can understand it. A passive body has characteristics that tell others around them, that the body is passive. It could be sloped shoulders or the curve of the back, but other people can pick up on those features. The act of bowing shows a sense of Hierarchy, while in comparison standing tall shows resistance in certain situations.

Boal techniques are called the “The sims of the Oppressed” because it is a simulation of different events. Real emotions are being simulated instead of actually occurring. These simulation allow for a deeper examination than the actual situation.

When in a situation like a classroom or at the work place the urge to act out often presents itself. But if I were to defend a fellow employes work to my boss, I also put my own position in danger. If that boss was attacking something done by another employee that I thought was good, I would like to stand up for that friend. But would that put my position with the boss in peril? It often causes a problem of properties.

The Image Theater was a performance in which all actors in the scenario need to express their feelings on a certain issue. They sculpt their own bodies into the position that they feel is representative of how they should be feeling. Other actors are allowed to change the scene as they see fit. Each actor gets their own change to place their bodies when that is complete others have the option to offer feed back. I think it works because people are forced to express themselves with out using words. Its much more difficult for everyone involved but in the end it produces a better result.

Invisible theater is a group of people putting on a rehearsed performance without alerting the public around them. The public viewing the scene think that it is actually happening and it creates interesting results. The public around are total random but the people involved in the theater having been practicing for a while.

Spectator is a bad word because it dehumanizes the person causing them to be considered less than a man. A spectator has no involvement in what is occurring and no choice about what they want to happen. This act of taking the choice away is bad. What Boal sent out to do is change that entire practice. In some ways video games and other interactive mediums allow for the spectator to become part of the action and really change what they want based on what they think should be changed. The interactive theater allows people to be responsible for what happens around them. Instead of standing by and letting bad things happen people are forced to fight for what they think is right. It promotes awareness and it actually begins to fix the problems they are fighting for.

Cyborg Manifestio

Within the context of this reading, Cyborgs become useful for exploring identity because they have no real place in society that limits there role. Cyborgs can be anyone and anything. The cyborg identity has no structure or is part of any other group of society other than its own. This allows for the comparison between us and what actual makes us human.

One major cyborg almost everyone should know, is Darth Vader. In some ways Star Wars made him the most famous Cyborg of them all. Most of his body was destroy upon his journey to the dark side. Not much of his

body was left, so in comparison not much of his humanity was left. His power was almost to strong to handle with his human body. Two other famous cyborgs are Robo Cop and the Terminator.

When Haraway states that “The production of a universal, totalizing theory is a major mistake”, she means that every one would have the same thoughts and the same minds. This would be the end of culture as we know it. With no one thinking new thoughts how would anything new exist? We would be at a stand still. Our humanity would be gone, we would be no better than machines. We need to retain the ability for free thought because with that we would be lost.

The cyborg would almost erase all other differences of humans. If everyone were to become a cyborg, wouldn’t we all be the same? Any other differences we have would just be the result of having different parts. We could no longer fight over tiny details while our main being was the same. In a way this is like code art “perversion” because it is a different version of a machine integration art. This brings in more human components and applies technology.

Something liberating about the idea of human/machine symbiosis is the potential it would have for our society. If we all shared the same traits and the same technology how would that change the world we know now? What would be different? What other areas of technology would jump forward as a result of our new being? Something dangerous is the idea that we would be completely dependent on machines. What if those machines stop working? What would happen to us?

I don’t really consider my self to be a cyborg. I do use technology and I do depend on it for my trade but I understand what it is and I know I can live with out it. I use machines and computers daily but they are not a necessary part of my life. I do have to admit though, technology brings me so much pleasure. It entertains me, it evolves me like no other medium can.

Edge of Art, Introduction

 

The internet has basically changed everything about our lives. Our lives are still being changed by it to this day. It has created so many news ways to share and exchange information that our world many never be the same. So no, I don’t think the internet has made art any less prominent in our culture. In fact I believe that the internet has allowed for the creation of new kinds of art. The best example of that would be any many-to-many project out there now. Those projects would not exist with out the internet. Also with new culture came new ways to create art. Not only has the internet changed art, other technology have allowed for the evolution of art.

Its also very interesting to think about how every culture thinks about art in different ways. It makes sense because most cultures do not value the same thing so thus why would their art be the same? They way people are raised often changed how people see art. It would be very interesting to see how different cultures and different time periods have changed the definition of art.

Edge of Art, Introduction part 3

With the recent times more and more people find pleasure in making their lives public. It feeds the need for attention and most people find nothing wrong with it. People want to be liked. They view these reality TV shows and assume that is how they should be living. For the most part people live their lives by some form moral beliefs and goals, but what those beliefs are, can be changed by the media we see around us. We see others making their life public so why shouldn’t I? They are getting attention while I’m not. I guess that means I have to change.

Autobotography allows a person to see who they really are. What faults they have and insecurities they have been trying to hide. When it comes down to it, autobotographys also show us what technology is doing to us. How it is changing us. In this way technology also allows us to focus more upon our selfs instead of others. We are given new ways to show how much we care about our selfs and how much we make others care about ourselves. The attention is addictive. People post photo after photo just so that they can have a reminder that other people like what they do. It becomes a cycle, that the more people show us interest, the more we want that attention back when it fades.

The internet and your information should not go together. With the recent times Facebook and its need to know about me have grown to ridiculous heights. Everyone on Facebook does not need to know where I am at every moment of the day. If I want people to know where I am, I will call them. If I wanted peoples opinions on what I do everyday, I would ask. Also posting your current location online almost teachers online predators your schedule. If a family all posts that they are going on vacation or at least out of the house for a length of time, whats stoping a potential burglar from robbing them blind? It almost makes it too easy for the predators out there.

One project that really changed its participates, was the Blogging a Birth project. I think by allowing the readers and the audience of that blog into such a private moment like their child’s birth, establish a much more interment connection. In a way relationships are formed with every member of that blog. Another project that really seemed to change they way we think about our selfs, would be the Jennicam. Before the Jennicam no one was really showing every aspect of their lives on with other people. She took this new medium and changed the way people perceive privacy all around the world.

With the project Nobody Here, views are greeted with the site of a man hunched over a computer. It brings to light the fact that this new technology only involves one person. Working on a computer is a looney task and it removes the human interaction from user. It attempts to replace it with other forms of interaction but nothing can really replace two people talking and interacting in person.

With all of our current technologies, we shape another not physical version of ourself. Everything posted on Facebook, everything we see and like changes what the internet thinks we are. Most companies out there now try to target individual people based upon what they think their target demographic is. The internet allows them the tools to find exactly who would buy their product because of the cybernetic version we leave of ourselves.

Like I started to say above, what we do on the internet changes our digital selves. Our digital presence can be bought and sold to the highest bidder, so that companies know everything we say about our selves upon the internet. We become who we are based upon what we like or do upon the internet.

The idea of a digital selves raises a lot concerns. What if the representation does not match what actually exists in the real world? What is preventing a man from portraying himself as a little girl? People on the internet need to know that who they are interacting with could actually be someone totally different. These invented selves do not need to be true. We “invent” them. We can make them into who we want to be, who we are not, or just what ever we care to be. People really need to understand the lack of truth within a digital self.

Edge of Art, CH 4 Designing Politics

 

Political Design and Hacktivist art are very similar but it all comes down to the purpose of the work. Political design projects often aim to help people. For example Patrick Ball created a database to keep track of track tortured dissidents in Sri Lanka and Guatemala. This project was created to inform while helping all of these individual people. Any one learning about this project sees the people who need help and get a better understanding of the conflict. Hacktivism is less about a political stance and more about the use of the internet to change the way people think about things. The ‘Free Kevin Mitnick’ campaign was an attempt to free the first famous hacker from jail. Both projects require code but the actual purpose of each project differs.

Execution can mean a lot of things. When a piece of computer code executes its values and functions are invocation. Execution can also mean the killing of a human being but thats not really the point. But for the point of this discussion the execution of code refers to the evocation of a piece of code. When showing code there is a difference between its representation and its execution. The representation of the code its just the characters that make up the individual lines of code. Execution of the code has vastly different results in comparison. In some sense the actual program itself could be considered art while the codes actual product can be something total different.

If Hacktivist artists were to only hack things that were deemed social acceptable their carriers would almost be completely pointless. Hacktivists need to change what society deems acceptable by doing things that some people say you shouldn’t. Their skill and their activities are dependent on changing society norms. For the most part if a organization says you should hack it, isn’t that enough reason to hack it? Just by saying no, more people what to try to. Its a part of human nature. One of the more interesting hacks was the barbie and army shoulder voice box hack. Not only was this off line, it had a decipherable result that many people took notice of. This project switched what the barbie and the army doll said so that it was reversed.

The Yes Men project challenged many different organizations around the world. Their main purpose was to show organizations what was wrong with their ways by shocking members. Its an interesting take on such a purpose. The Yes Men seemed to focus on large companies but because of the worlds current structure, changing those companies changes the whole world.