5/29/2010
5/27/2010
Review
Although we had a lot of trouble, we managed to present our game.
And that's excellent.
I'm pretty sure, it will be difficult for them to give us a bad grade in front of us,
but it seems the most of them actually enjoyed the game. One person even gave us 11.
But since about only ten or less people played this game, the percentage of the people who thought the game is worth a sticker was high.
The biggest problem we had was a technical difficulty.
Like, the sound was too faint, the sticks broke, wireless mouse didn't work etc...
(Broken sticks are totally my fault. I should have chosen a stronger material.)
Because of those troubles, we failed to attract people in the first hour, which is a big loss.
Little problems are:
It might have been a bit too scary for girls. One girl ran away when I asked her to play it.
People tend to hit the bear too strongly. Since they are so excited, they can't save their force.
Appearance isn't very attractive.
After all, those people who played the game, said that they enjoyed it.
Once they play it, they like it, but we couldn't make them play it.
Therefore, our idea of the game was good, but we failed at the process to advertise and provide the game.
So, now I really want to revenge.
The only way to revenge is to get on a newspaper.
And we have about two weeks to do that.
I'm going to think about ways to become famous on this weekend.
Junki
And the Money
We need to see each other again to pay back for whatever each individual bought for the game.
Our team website
https://dl.dropbox.com/u/370473/homepage/home.html
https://dl.dropbox.com/u/370473/homepage/how%20the%20game%20works.html
https://dl.dropbox.com/u/370473/homepage/equipment.html
Finished Program
Make sure to have your speakers turned on, the players are told who the Hunter is by sound. Oh and if you don't play it through and exit that way, you need to stop the javaw.exe process.
-Shaun
5/25/2010
Program Update
Hey guys, Shaun again, just wanted to give a progress report on the program.
So now there's a main menu that you can start a new game from, and it runs the game in 10 'rounds' of 20 seconds. Just from testing it 10 seems like a lot so what would you guys think of changing it to 6 or 8? It's easy to change so just let me know.
A sound plays after 20 seconds to signal the end of the round.
So the last thing that I need to do is to add a pop-up window that asks you if the hunter was successful, and it'll be done :)
-Shaun
5/24/2010
Current Program
Hey guys, Shaun here, here's the current build of the program, it doesn't do everything yet but-
What it does do: Counts clicks when the timer is going, times 20 seconds, displays player images, plays a sound after 20 seconds and randomly assigns a player as the Hunter.
What it doesn't do: Runs through more than once, stops the score from being added to the Hunter's total score (for when their hat thing gets knocked off), has the right images, has a restart button.
So, that should all be pretty easy except for the restart. I don;t think there's a built-in function to do it, so I'll either have another application that opens the main one or reset all variables.
You'll notice that the score isn't displayed, if I have enough time tonight I'll add that (won't take more than 10 minutes to add it and get it in the right position).
The only other thing's the final images which I'm waiting for from Lex, so could you get them to me sometime tomorrow please Alex?
Code below, sorry it's so long:
import javax.imageio.ImageIO;
import javax.swing.*;
import java.applet.Applet;
import java.awt.Button;
import java.awt.Container;
import java.awt.Event;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Panel;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Random;
public class MouseClickEventDemo extends Applet implements ActionListener {
BufferedImage image;
Random randomGenerator = new Random();
int playerNum=randomGenerator.nextInt(2);
int clickCount=0;
public Container getContentPane;
String timerSeconds = "ss";
boolean trueClicked=false;
final static JTextArea textArea = new JTextArea();
Button okButton;
static Panel panel = new MouseClickEventDemo();
int timeInt = 0;
int secondTimeInt=0;
public void actionPerformed(ActionEvent evt)
{
if (evt.getSource() == okButton) {
if (timeInt!=secondTimeInt){
clickCount++;
}
//System.out.println(clickCount);
}
repaint();
}
public void displayText() {
textArea.setText("Number of hit " + clickCount);
}
private void initComponents() {
textArea.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e){
if (e.getButton() == MouseEvent.NOBUTTON){
}
else if (e.getButton() == MouseEvent.BUTTON1) {
clickCount++;
}
}
});
}
//SwingUtilities.invokeLater(new Runnable() {
public void run() {
okButton = new Button("Action!");
panel.add(okButton);
okButton.addActionListener(this);
//int timeInt = 0;
//int secondTimeInt=0;
new MouseClickEventDemo().setVisible(true);
timeInt = Integer.parseInt(DateUtils.now());
System.out.println("Now : " + DateUtils.now());
secondTimeInt=timeInt+20;
System.out.println("Then before : " + secondTimeInt);
if (secondTimeInt>60){
secondTimeInt=secondTimeInt-60;
}
System.out.println("Then after : " + secondTimeInt);
while (timeInt!=secondTimeInt){
initComponents();
timeInt = Integer.parseInt(DateUtils.now());
}
try {
PlayDing.playding();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(clickCount);
}
public void mouseClicked (MouseEvent e) {
}
public void mousePressed (MouseEvent e) {
clickCount++;
}
public String now() {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(timerSeconds);
return sdf.format(cal.getTime());
}
public MouseClickEventDemo() {
try {
playerNum=playerNum+1;
Image playerImage;
//initComponents();
//getContentPane.add(textArea);
String imageName = "C:/Users/Shaun/Pictures/player"+playerNum+".jpg";
File input = new File(imageName);
image = ImageIO.read(input);
} catch (IOException ie) {
System.out.println("Error:"+ie.getMessage());
}
}
public void paint(Graphics g) {
g.drawImage( image, 0, 0, null);
}
static public void main(String arg[]) throws
Exception {
JFrame frame = new JFrame("Display image");
panel.add(textArea);
frame.getContentPane().add(panel);
frame.setSize(500, 500);
frame.setVisible(true);
int timeInt = Integer.parseInt(DateUtils.now());
System.out.println(timeInt);
MouseClickEventDemo someString = new MouseClickEventDemo();
someString.run();
}
}
Different class
import sun.audio.*;
import java.io.*;
public class PlayDing {
public static void playding() throws IOException{
InputStream in = new FileInputStream("C:/Users/Shaun/Pictures/ding.wav");
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
}
}
Different class
import java.util.Calendar;
import java.text.SimpleDateFormat;
public class DateUtils {
public static final String timerSeconds = "ss";
public static String now() {
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(timerSeconds);
return sdf.format(cal.getTime());
}
//public static void main(String arg[]) {
public void getDate(){
int timeInt = Integer.parseInt(DateUtils.now());
System.out.println("Now : " + DateUtils.now());
int secondTimeInt=timeInt+20;
System.out.println("Then before : " + secondTimeInt);
if (secondTimeInt>60){
secondTimeInt=secondTimeInt-60;
}
System.out.println("Then after : " + secondTimeInt);
while (timeInt!=secondTimeInt){
timeInt = Integer.parseInt(DateUtils.now());
}
System.out.println("It has been 20 seconds");
}
}
-Shaun
5/23/2010
keep on keepin on
5/21/2010
Poster1.0
5/19/2010
Equipment
Update on The Leader Newspaper
Ok, so I spoke to the editor and she wants us to do a bit of running around to make things easier for them. They asked me to:
- Talk to the Journalist department of RMIT and see if they can write us up a press release.
- They advised me to try for multiple papers around the city area.
- So far it's going well.
So I may need some help finding the Journalism Department, she said it doesn't matter if a journalism student does it, she just wants someone else to do the hard work, they'll edit it.
- Alex
5/18/2010
Vital Part
I've made the target to put on players' head.
Since I used magnets, the stickiness will last semi-infinitely.
Junki
5/15/2010
New program
Hey guys, this post is directed at The Lexinator:
When you have the time could I get 3 images from you with the following specs?
The first one's a splash screen for when it loads. I suppose something with the title, Team N and maybe a nice graphic would be awesome.
The second and third one's are both screens to let the player know who is the hunter, player 1 or player 2. As long as it's big and obvious who the hunter is it's cool.
And that's it!
All of them should be 1024x768 pixels, or whatever your screen resolution is please :)
Once I've git them I'll plug them into the program and it should be good to go once I've added a title menu.
-Shaun
5/11/2010
alpha bear
5/10/2010
Media Coverage
I spoke to the editor of the Leader Newspaper the other day and she said she would be more than happy on writing a piece on our game project.
It's not final yet, and she would like us to give a demonstration of our game in the future.
But think about it, we're so close to securing a HD now :D
5/09/2010
IRON MAN BEAR
The game with a teddy bear
- Make use of the computer
- More exertion
- More fun
- Less cost/devices
I made this new rule:





- the computer is counting hits which is hard for human to do,
- the players are forced to run,
- the mouse doesn't need to be wireless,
- And a bit of cruelty and violence might make the game a little more fun.
What do you think?
Junki
Right Clicker

I've broken a mouse into pieces and created a machine which only does right click.
I went to Jaycar near RMIT on Friday and looked for a wireless mouse.
Yet, I found out that a wireless mouse can only be about 5 meters away from its receiver.
So, I decided to buy a wired mouse.

Now I've fit the inside of the mouse into this box, and it does right click when its lid is pushed.
I wanted to test it, however I realized that there is no mach for the mouse's terminal on my PC.
So I'm going to buy an adapter.
I'm also waiting for the teddy bear to put this machine into.
Junki
Programs
Hey guys, I think we decided to keep going the way we're going with the programs, and have a simpler program as a back-up, but that doesn't seem right. So what did we decide?
- Keep going with what we're already doing. I'll add 2 more games, create the main class that runs one of the games at random. The users both input values, if they're right they can run off to get the sword or shield, if not they suffer a 5 second penalty.
- There are 2 groups of dots displayed, probably of different colors so the users can tell which one's for them. Both groups of dots will be shown on the same screen, and the user with the most dots is the hunter.
- A questions is shown on the screen and the user to enter the correct answer first is the hunter, and the other one is the hunted.
If there's a third option that I'm overlooking please let me know, and to be honest I'm not entirely sure if we decided on which option would be best. Perhaps if everyone comments and from there we can make a decision.
-Hope everyone's having a good weekend, Shaun.
5/05/2010
Improved target
First 2 mini games in video
Hey guys, Shaun here. I thought I'd post a video of the 2 completed games we have so far. I'm still looking for 2 more so if you've seen something that you think we adapt or you've got an original idea for me just let me know.
I talk about an alternative to these games at the end of this video. Think of it like Buzz, and we could use numpads (one turned 90 degrees to the left, the other to the right) as controllers.
5/04/2010
Alternatives
5/03/2010
The sword
I've made the sword.
I wish I could make the lights stay turned on for a while, even after disconnecting.
So that the lights can be an evidence of a successful hit.
I also thought that maybe the noise made by hitting the plate is enough to tell that the hit occurred.
Junki
5/02/2010
Mini Game Idea
Hey guys, I've already told you about this but I thought a good idea for one of the small deciding games (like the count the dots game) would be one with simple equations, but the numbers are replaced with animals and the number is equal to the number of legs the animal has (so cow + chicken would be 4+2). This one shouldn't take me too long to program and I'm looking for 2 more game ideas if anyone has any.
And Alex next time you've got some spare time could you please make me some animal heads? If you can find the time text me and I'll give you the information on the dimensions that I worked under. Oh and also some dots in the same style.
If I finish the animal algebra game then I'll change the dots game so it can render more dots and they will be placed randomly. I've found that it is possible to use a transparent image in Java and I can ask it to give me the window dimensions and create a random integer between 1 and the width and 1 and the height to create coordinates. I'd really like to get around to doing this but I want to finish the other mini games first, just wanted to let everyone know that it's possible.
EDIT: Hey I was thinking that if we get the time we should make this blog look pretty :)
I hope everyone had a good weekend :D
-Shaun
About Me
Blog Archive
-
▼
2010
(52)
-
▼
May
(28)
- I have quickly re-made the video.What do you think...
- Review
- Our team website
- The poster with sentences
- Finished Program
- Program Update
- Current Program
- keep on keepin on
- Poster1.0
- Equipment
- Update on The Leader Newspaper
- Vital Part
- New program
- NO MAI GAWD KILL IT!
- DONE!!!..kinda
- alpha bear
- Media Coverage
- This is the sketch up.im still working on how to c...
- IRON MAN BEAR
- The game with a teddy bear
- Right Clicker
- Programs
- Improved target
- First 2 mini games in video
- Alternatives
- The sword
- yeah i was also looking at changing the template. ...
- Mini Game Idea
-
▼
May
(28)