Thursday 13 November 2014

Week 12:

Still not much I can do at this point. The javascript written by angus and phillip is fairly complex at this point, so there is not much I can do to help them without requiring them to waste time explaining what they've already done. I've been working on a layout for the battle page in the meantime, creating the 'player' and 'enemy' ID's in CSS, with the following code:

#player{
background-color: #a4d1ff;
padding-bottom: 40px;
margin-left: 1.7%;
padding-left: 5px;
padding-right: 5px;
text-align: center;
float: left;
width: 39%;
border-style: solid;
        border-width: 3px;
border-color: #074680;

}

#enemy {
background-color: #fca65b;
float: right;
padding-bottom: 40px;
padding-left: 5px;
padding-right: 5px;
width: 39%;
text-align: center;
border-style: solid;
        border-width: 3px;
border-color: #074680;

}

This produces a pair of lighter-coloured blocks side by side on the battle page. At the moment I have no content to put in them, but Angus says he is getting close to being able to return character data to but in these blocks, so thats good.

Battle page appearance:


No comments:

Post a Comment