tom and jerry fraidy cat 1942

Recently Searched

How to set up a makeup and hair studiocid Azaadi Ki Jung full hd episodesحفله في امحمره/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package graficacion; import javax.swing.*; import com.jogamp.opengl.GL2; import com.jogamp.opengl.GLAutoDrawable; import com.jogamp.opengl.GLEventListener; import com.jogamp.opengl.awt.GLCanvas; import com.jogamp.opengl.glu.GLU; import com.jogamp.opengl.util.Animator; import com.jogamp.opengl.util.gl2.GLUT; import java.awt.Frame; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; /** * @author Brenda Trejo Guerrero * Dalia Villeda Lira * Juan Francisco Ramirez Gonzalez * * @grupo 1703 * * @Fecha 09-dic-2016 * * @Materia Graficacion por computadora */ public class Juego implements GLEventListener, KeyListener { GL2 gl; GLU glu; GLUT glut; static int incx, incy, velocidad, cont,puntuacion; static boolean sube, derecha, corre; public static void main(String[] args) { Frame frame = new Frame(""); GLCanvas canvas = new GLCanvas(); canvas.addGLEventListener(new Juego()); canvas.addKeyListener(new Juego()); frame.add(canvas); frame.setSize(640, 480); JOptionPane.showMessageDialog(null,"El objetivo es NO chocar con las paredes,los movimientos son con las flechas(ARRIBA,ABAJO,IZQUIERDA O DERECHA).\n Cada movimiento Te da un punto"); JOptionPane.showMessageDialog(null,"Para comenzar a jugar bebes dar click izquierdo y apretar C!!!"); final Animator animator = new Animator(canvas); frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { new Thread(new Runnable() { @Override public void run() { animator.stop(); System.exit(0); } }).start(); } }); // Center frame frame.setLocationRelativeTo(null); frame.setVisible(true); animator.start(); } @Override public void init(GLAutoDrawable glad) { gl = glad.getGL().getGL2(); glu = new GLU(); glut=new GLUT(); incx=incy=1; sube = true; derecha = true; corre = false; velocidad = 300; cont = 0; puntuacion=1; gl.glClearColor(0.0f,0.0f,0.0f,0.0f); gl.glMatrixMode(GL2.GL_PROJECTION); gl.glLoadIdentity(); glu.gluOrtho2D(0, 20, 0, 20); gl.glMatrixMode(GL2.GL_MODELVIEW); gl.glLoadIdentity(); } @Override public void dispose(GLAutoDrawable glad) { } @Override public void display(GLAutoDrawable glad) { gl.glClear(GL2.GL_COLOR_BUFFER_BIT); gl.glBegin(GL2.GL_QUADS); gl.glVertex2i(incx,incy); gl.glVertex2i(1+incx,incy); gl.glVertex2i(1+incx,1+incy); gl.glVertex2i(incx,1+incy); gl.glEnd(); if (corre) { if (derecha) { incx++; } else { incx--; } if(sube) { incy++; } else { incy--; } cont++; } if(cont>30) { cont=0; velocidad /= 2; } if (incx == -20 || incx == 20 || incy == -20 || incy == 20) { corre = false; gl.glRasterPos2i(0, 0); gl.glColor3d(Math.random(), Math.random(), Math.random()); glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18 , "Perdiste!!!!\nTu puntuacion: "+puntuacion); } try { Thread.sleep(velocidad); } catch(InterruptedException ex){ System.out.println(ex.toString()); } gl.glFlush(); } @Override public void reshape(GLAutoDrawable glad, int i, int i1, int i2, int i3) { } @Override public void keyTyped(KeyEvent e) { } @Override public void keyPressed(KeyEvent e) { switch(e.getKeyCode()) { case KeyEvent.VK_DOWN: sube = false; puntuacion++; break; case KeyEvent.VK_UP: sube = true; puntuacion++; break; case KeyEvent.VK_RIGHT: derecha = true; puntuacion++; break; case KeyEvent.VK_LEFT: derecha = false; puntuacion++; break; case KeyEvent.VK_C: corre = true; puntuacion=1; velocidad = 300; cont = 0; break; } } @Override public void keyReleased(KeyEvent e)rowdy no 1toori no 1rubab sargam 2pokemon ash vs champion diantha amvAlia bhatt funnymotuu patlu new episodeopening soulcalibur3los jefesGirls lib chaing read beauti tubes videoPokemon the movie xyand zTumar Oi Mukhta Jore ShukjeUn beso aventuraカズクラnewBollywood new moviescara ijas gitarafter schoolmvbaalveer episode 266after school mvishaqbazz full১৬ ডিসেম্বর নতুন গান 2016Mesa que más aplaudaAlia bhattgokhan akarDbs episode 70 full eng subbedbarrel o slimemixed real wrestlingArabic hot songsWwe last monday night raw matches vidMarcello Santos Short filmsOne hour mizz twerksum compilationbigo live pamer memekحب للايجار 64Mirakkel-Akkel-Challenger 6 By Abu Hena RonyPAKISTANI DRAMA deyare dill apisode 26mashup 11 dileepa saranga
Natok24.Com is a Video search engine and does not upload or host any files on it's server. All the contents are provided here via Youtube Api v3 from Youtube. If you are a valid owner of any content listed here & want to remove it contact to YOUTUBE or You can send us an DMCA formatted takedown notice at [email protected] . We will remove your content as soon as possible.