Hersh Dirtwood Session 20

30 min session 17 houston tx

Credit: jabari winters
Related:
Create New Tag

Hersh's videos

20 comments
  • Hersh

    5/15/2009 10:37 AM

    //James Faihurst

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;

    public class jamesGame
    {
    public static void main(String[]args)
    {
    buildMaze bM= new buildMaze();
    bM.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    }

    class buildMaze extends JFrame implements KeyListener
    {
    private JLabel directions= new JLabel("Maze Starts Here!");
    private int x;
    private int y;
    private Image up;
    private Image right;
    private Image left;
    private Image down;
    private Image current;
    private Image wallOne;
    private final int jump=5;
    Image img = Toolkit.getDefaultToolkit().createImage("baseMaze.jpg");


    public buildMaze()
    {

    this.setTitle("Key Listener Arrows");
    this.setSize(600,600);
    Container canvas = getContentPane();
    canvas.setLayout(new FlowLayout(FlowLayout.LEFT));
    canvas.add(directions);
    requestFocus();
    addKeyListener(this);
    x=0;
    y=75;
    up=Toolkit.getDefaultToolkit().getImage("redBall.gif");
    right=Toolkit.getDefaultToolkit().getImage("redBall.gif");
    left=Toolkit.getDefaultToolkit().getImage("redBall.gif");
    down=Toolkit.getDefaultToolkit().getImage("redBall.gif");
    wallOne=Toolkit.getDefaultToolkit().getImage("baseMaze.gif");
    current=right;

    this.setVisible(true);


    }
    public void paint(Graphics g)
    {
    directions.setSize(100,100);
    g.setColor(getBackground());
    g.fillRect(x-jump,y-jump,40,40);
    g.drawImage(wallOne,0,20,this);
    g.drawImage(current,x,y,this);





    }

    public void keyPressed(KeyEvent event)
    {
    switch(event.getKeyCode())
    {
    case KeyEvent.VK_UP: current=up; if(y>20) y-=jump; break;
    case KeyEvent.VK_DOWN: current=down; if(y20) x-=jump; break;
    }
    repaint();


    }

    public void keyReleased(KeyEvent event)
    {

    }

    public void keyTyped(KeyEvent event)
    {

    }
    }

  • Hersh

    5/14/2009 10:30 AM



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Snake{


    public static void main(String[]args){
    hershGame hG=new hershGame();
    hG.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    }


    class hershGame extends JFrame implements KeyListener{

    JLabel showIt= new JLabel("KeyListener");
    private int x;
    private int y;
    private Image current;
    private Image up;
    private Image down;
    private Image right;
    private Image left;
    private final int jump =50;

    public hershGame(){
    this.setTitle("");
    this.setSize(500,500);
    Container canvas = getContentPane();
    canvas.add(showIt);
    requestFocus();
    addKeyListener(this);
    x=10;
    y=10;
    up=Toolkit.getDefaultToolkit().getImage("4snake.gif");
    down=Toolkit.getDefaultToolkit().getImage("4snake.gif");
    right=Toolkit.getDefaultToolkit().getImage("4snake.gif");
    left=Toolkit.getDefaultToolkit().getImage("4snake.gif");
    current=right;

    this.setVisible(true);
    }
    public void paint(Graphics g)
    {
    showIt.setSize(800,600);
    this.setBackground(Color.BLACK);
    g.setColor(getBackground());
    g.fillRect(x-jump,y-jump,40,40);
    g.drawImage(current, x, y, this);

    }
    public void keyTyped (KeyEvent event)
    {


    }
    public void keyPressed (KeyEvent event)
    {
    switch( event.getKeyCode()){
    case KeyEvent.VK_UP: current=up;if(y>20) y=y-jump; break;
    case KeyEvent.VK_DOWN:current=down;if(y0) x=x-jump; break;

    }
    repaint();
    }
    public void keyReleased(KeyEvent event)
    {

    }

    }

  • dirtybmx [A.B.C]

    12/1/2008 2:30 PM

    dude i was there that night he was filming this video lol =P

  • dravin9

    11/30/2008 6:56 PM

    ive been dur

  • kylea1

    11/30/2008 9:52 AM

    either everyone was hot boxing the room or you need a new camera =)

    good stuff tho

  • theempty

    11/29/2008 7:47 PM

    bar tailwhip bar tailwhipbar tailwhip bar tailwhipbar tailwhip bar tailwhip tuckno bar tailwhip bar tailwhipbar tailwhip bar tailwhip tuckno hang 5 hang 5 hang 5 bar tailwhip bar tailwhipbar tailwhip bar tailwhip

    btw, you have really good lighting.

  • sarkumfromindonesia

    11/29/2008 5:30 PM

    Too dark, cant see a thing....

  • ohnohefell

    11/29/2008 8:44 AM

    id just fixed the camera veiw other than that good riden.

  • bikerider2k8

    11/29/2008 4:32 AM

    sweet

  • rodolphe.legendre

    11/29/2008 4:09 AM

    quality sucks

  • Hersh

    11/28/2008 8:20 PM

    sorry i know the camera wasnt that greatt :/

  • 4thelove

    11/28/2008 7:36 PM

    DIRTWOOD REPRESENT!!!!

    I see me in the background in this video.

  • trigger like a hairpin

    11/28/2008 7:32 PM

    Awsesome ridin im goin to dirtwood tommorow with my friends that palce is so sick

  • H-A-R-R-Y

    11/28/2008 7:26 PM

    what happened couldn't see, ha ha. nice riding though.

  • Matt Smith

    11/28/2008 7:07 PM

    HEHE floridabmx!!! great ridin bad quality though =D

  • FLORIDABMX

    11/28/2008 8:26 AM

    bar tailwhip bar tailwhipbar tailwhip bar tailwhipbar tailwhip bar tailwhip tuckno bar tailwhip bar tailwhipbar tailwhip bar tailwhip tuckno hang 5 hang 5 hang 5 bar tailwhip bar tailwhipbar tailwhip bar tailwhip

  • stefan is FIT

    11/28/2008 7:15 AM

    nice man i live in houston too. whats your name?

  • wethepeople_bram

    11/27/2008 12:10 PM

    realy nice shit !! great song !

  • peoplethewe

    11/27/2008 11:01 AM

    shit yeah! that was sick as!

  • HHBMX

    11/27/2008 5:58 AM

    I can hardly see the camera sucks