Skip to content

Commit

Permalink
Merge pull request #8 from nissayeva/master
Browse files Browse the repository at this point in the history
Added features to game, closes #7
  • Loading branch information
kjorg50 committed Mar 9, 2014
2 parents 54af3a1 + edf24ab commit 137356f
Show file tree
Hide file tree
Showing 29 changed files with 7 additions and 2 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added bin/.DS_Store
Binary file not shown.
Binary file added bin/KitchenThings/.DS_Store
Binary file not shown.
Binary file added bin/KitchenThings/Table_Item_Lights.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/KitchenThings/Table_Item_Lights2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/KitchenThings/Table_Item_Window.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/KitchenThings/Table_Item_Window2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/LivingRoomThings/.DS_Store
Binary file not shown.
Binary file added bin/LivingRoomThings/Livingroom_Item_Rug.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/LivingRoomThings/Livingroom_Item_Rug2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/BedroomThings/Bedroom_Item_Light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/BedroomThings/Bedroom_Item_Light2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/BedroomThings/Bedroom_Item_Pillow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/BedroomThings/Bedroom_Item_Pillow2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/BedroomThings/Bedroom_Item_Poster.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/BedroomThings/Bedroom_Item_Poster2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Bedroom_Background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Bedroom_Icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/Game.java
Expand Up @@ -64,10 +64,11 @@ private void initiate(){
Room dashain = new Room("Dashain",this,"src/Dashain_Background.png","src/Dashain_Icon.png",new File("src/DashainThings"),this);
Room kitchen = new Room("Kitchen",this,"src/Table_Background.png","src/Table_Icon.png",new File("src/KitchenThings"),this);
Room livingRoom = new Room("LivingRoom",this,"src/Living Room_Background.png","src/Living Room_Icon.png",new File("src/LivingRoomThings"),this);
Room bedroom = new Room("Bedroom",this,"src/Bedroom_Background.png","src/Bedroom_Icon.png",new File("src/BedroomThings"),this);
rooms.add(dashain);
rooms.add(kitchen);
rooms.add(livingRoom);

rooms.add(bedroom);


currentRoom = rooms.get(0);
Expand Down
Binary file added src/KitchenThings/.DS_Store
Binary file not shown.
Binary file added src/KitchenThings/Table_Item_Lights.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/KitchenThings/Table_Item_Lights2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/KitchenThings/Table_Item_Window.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/KitchenThings/Table_Item_Window2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/LivingRoomThings/.DS_Store
Binary file not shown.
Binary file added src/LivingRoomThings/Livingroom_Item_Rug.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/LivingRoomThings/Livingroom_Item_Rug2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/Room.java
Expand Up @@ -97,6 +97,10 @@ public <E extends JPanel> Room(String name,E j,String bgImgPath,String iconImgPa
thingName.length()>8+"Dashain".length()&&
thingName.substring(thingName.length()-8-"Dashain".length(),thingName.length()-8).equals("Dashain")){
room = "Dashain";
}else if(
thingName.length()>8+"Bedroom".length()&&
thingName.substring(thingName.length()-8-"Bedroom".length(),thingName.length()-8).equals("Bedroom")){
room = "Bedroom";
}

if(room!=null){
Expand Down Expand Up @@ -231,7 +235,7 @@ public void draw(Graphics g){

/**
* Draws the Things in the room
* @param g
* @param g-
*/
private void drawThings(Graphics g){
for(int i = things.size()-1;i>=0;i--){
Expand Down

0 comments on commit 137356f

Please sign in to comment.