// Ashok Sivakumar 			6.030 Final Project
// 12/04/99

package breakout;

import java.awt.event.*;
import java.awt.*;
import cs101.io.*;				// Necessary  import statements
import cs101.awt.*;
import cs101.net.*;

/* This is the class that contains the Main constructor.  In this
	class, the methods to begin the introduction are called and
	I create new instances of all objects i need -
	the Canvas on which I draw, the Frame that takes canvas as parameter
	and sets things up.  */
	
	
public class BreakOutMain
{
		
	// generic main constructor
	public static void main (String[] args) 
	{
		
		/************* THE INTRODUCTION -  Story of how Katakana came to be !! *************/
		
		TextArea ta= new TextArea();
		ScrollArea sa=new ScrollArea( );
		Frame f = new Frame();
		
		f.setSize(850, 700);
		f.setLocation(100, 10);
		f.add(sa);
		f.show();
		sa.startScrolling(); // begins to display the story
		

		/******** Creates instances of Canvas and Frame and sets game items up on screen *******/
		
		System.out.println("Foo debug 1");
		ScreenCanvas theCanvas = new ScreenCanvas(); // creation of necessary objects to begin game
		System.out.println("Foo debug 2");
		BreakOutFrame myFrame = new BreakOutFrame(theCanvas);
		System.out.println("Foo debug 3");
		myFrame.init();	 // necessary initialization statement to show frame
		System.out.println("Foo debug 4");
		theCanvas.showStuff();	
	}

}
