Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added features to game #8

Merged
merged 12 commits into from Mar 9, 2014
Merged

Conversation

nasquasha
Copy link
Contributor

Moderator: Bronwyn
~requested: 500

@bronhuston
Copy link

@nissayeva Hey I'm trying to run the game, but when I do ant compile, followed by ant run, I get the error:

 [java] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
 [java]     at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:59)
 [java]     at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397)
 [java]     at java.awt.image.Raster.createWritableRaster(Raster.java:935)
 [java]     at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1056)
 [java]     at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
 [java]     at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1263)
 [java]     at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1560)
 [java]     at javax.imageio.ImageIO.read(ImageIO.java:1422)
 [java]     at javax.imageio.ImageIO.read(ImageIO.java:1282)
 [java]     at Room.<init>(Unknown Source)
 [java]     at Game.initiate(Unknown Source)
 [java]     at Game.<init>(Unknown Source)
 [java]     at Game.main(Unknown Source)
 [java] Java Result: 1

and the game never runs. Let me know if you know a fix to this either in lab tomorrow or whenever you get a chance before then.

@@ -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);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like the graphics you added!

@bronhuston
Copy link

PROJ1 MOD REVIEW DONE

@kjorg50 kjorg50 self-assigned this Mar 9, 2014
@kjorg50
Copy link
Contributor

kjorg50 commented Mar 9, 2014

You have a few unnecessary things in your repo. In some of your folders you committed a .DS_Store file, and the build/ folder is not needed so you should remove these and add them to your .gitignore for Project 2

kjorg50 added a commit that referenced this pull request Mar 9, 2014
Added features to game, closes #7
@kjorg50 kjorg50 merged commit 137356f into ucsb-cs56-projects-icebox:master Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants