A floating top hat? How wonderfully absurd!

Mes

Junio 2010

3 publicaciones nuevas

“Games are more like artifacts than media. By this we mean that the content of a game is its behavior - not the media that streams out of it towards the player.”

~Hunicke, LeBlanc & Zubek

Jun 25, 2010
Mi primer prototipo de juego. Mi "Hello World" :D

<?xml version=”1.0” encoding=”utf-8”?>

<mx:Application 

xmlns:mx=”http://www.adobe.com/2006/mxml” 

height=”700” 

width=”760” 

creationComplete=”start()”>

<mx:Script>

<![CDATA[

var seconds:int = 30;

var countDownText:String = ” seg”;

var timer:Timer = new Timer(1000);

var mainMovieClip:MovieClip;

var game:MovieClip = new MovieClip();

var textField:TextField = new TextField();

public function start():void

{

var random:Number = Math.random()*100;

mainMovieClip = this.parent as MovieClip;

game.graphics.beginFill(0x000000);

game.graphics.drawRect(0, 0, 760, 700);

game.graphics.endFill();

game.graphics.beginFill(0xFFFFFF);

game.graphics.drawRect(280, 0, 200, 50);

game.graphics.endFill();

var stand1:MovieClip = new MovieClip();

stand1.graphics.beginFill(0x666666);

stand1.graphics.drawRect(0, 0, 400, 150);

stand1.graphics.endFill();

game.addChild(stand1);

stand1.x = 180;

stand1.y = 500;

var circle1:MovieClip = new MovieClip();

if (random <= 33) circle1.graphics.beginFill(0xFF0000);

else circle1.graphics.beginFill(0xFFFFFF);

if (random <= 33) circle1.addEventListener(MouseEvent.CLICK, onWhiteCircleClick);

else circle1.addEventListener(MouseEvent.CLICK, onCircleClick);

circle1.graphics.drawEllipse(0, 0, 40, 40);

circle1.graphics.endFill();

game.addChild(circle1);

circle1.x = 200;

circle1.y = 500;

var circle2:MovieClip = new MovieClip();

if (random > 33 && random < 66) circle2.graphics.beginFill(0xFF0000);

else circle2.graphics.beginFill(0xFFFFFF);

if (random > 33 && random < 66) circle2.addEventListener(MouseEvent.CLICK, onWhiteCircleClick);

else circle2.addEventListener(MouseEvent.CLICK, onCircleClick);

circle2.graphics.drawEllipse(0, 0, 40, 40);

circle2.graphics.endFill();

game.addChild(circle2);

circle2.x = 360

circle2.y = 500;

var circle3:MovieClip = new MovieClip();

if (random >= 66 && random <101) circle3.graphics.beginFill(0xFF0000);

else circle3.graphics.beginFill(0xFFFFFF);

if (random >= 66 && random <101) circle2.addEventListener(MouseEvent.CLICK, onWhiteCircleClick);

else circle3.addEventListener(MouseEvent.CLICK, onCircleClick);

circle3.graphics.drawEllipse(0, 0, 40, 40);

circle3.graphics.endFill();

game.addChild(circle3);

circle3.x = 510;

circle3.y = 500;

mainMovieClip.addChild(game);

textField.text = seconds + countDownText;

game.addChild(textField);

textField.x = 330;

textField.y = 20;

timer.addEventListener(TimerEvent.TIMER, onTimerComplete);

timer.start();

}

private function onTimerComplete(event:TimerEvent):void

{

timer.stop();

seconds = seconds - 1;

if(seconds == -1) return;

textField.text = seconds + countDownText;

timer.reset();

timer.start();

}

private function onCircleClick(event:MouseEvent)

{

seconds = seconds + 1;

textField.text = seconds + countDownText;

}

private function onWhiteCircleClick(event:MouseEvent)

{

seconds = seconds - 1;

textField.text = seconds + countDownText;

}

]]>

</mx:Script>

</mx:Application>

Jun 10, 20101 note
#videojuegos
“It’s not the case that I was intentionally trying to expand the boundaries of whatever videogames can do: rather, I was simply trying to expand whatever I could do to more people.” —~Miyamoto
Jun 2, 20102 notes
#videojuegos
Página siguiente →
2012 2013
  • Enero
  • Febrero 1
  • Marzo
  • Abril 1
  • Mayo
  • Junio
  • Julio
  • Agosto
  • Septiembre
  • Octubre
  • Noviembre
  • Diciembre
2011 2012 2013
  • Enero 15
  • Febrero 15
  • Marzo 13
  • Abril 8
  • Mayo 9
  • Junio 6
  • Julio 15
  • Agosto 2
  • Septiembre 3
  • Octubre 2
  • Noviembre 6
  • Diciembre 1
2010 2011 2012
  • Enero 45
  • Febrero 40
  • Marzo 47
  • Abril 28
  • Mayo 14
  • Junio 39
  • Julio 12
  • Agosto 11
  • Septiembre 5
  • Octubre 12
  • Noviembre 11
  • Diciembre 12
2009 2010 2011
  • Enero 57
  • Febrero 1
  • Marzo 9
  • Abril 12
  • Mayo 13
  • Junio 3
  • Julio 1
  • Agosto 5
  • Septiembre 5
  • Octubre 8
  • Noviembre 6
  • Diciembre 33
2009 2010
  • Enero
  • Febrero
  • Marzo
  • Abril
  • Mayo
  • Junio
  • Julio
  • Agosto
  • Septiembre
  • Octubre
  • Noviembre
  • Diciembre 24