Sunday, April 8, 2012
Upcoming game....I mean program...
As I went onto the CS1121 homepage I found that homework 5 was available and I took a gander at it. The program going to be based off the game snake and it will involve the use of graphical user interfaces and it sounds like it will be a pretty fun program to make. Being anxious to start it, I have already done a few things with the code. I have already made the JFrame and JButton objects as well as initialized the size of the frame and made the frame visible. The game itself is a grid with a specified amount of JButton objects and I have the user input the amount of rows and columns that will be used in the game and I add the JButton objects to the frame accordingly. The JButton objects have a defined size in this game, so I have made a for loop that adds all JButton objects that can possibly be added. I'm sure Dr. Poplawski will talk more about the program on Tuesday, but I thought it would be best to get a head start on it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment