This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creamos una entidad con físicas en las coordenadas 0,0 | |
PhysicsEntity pBox = new PhysicsEntity( 0.0, 0.0 ); | |
pBox.Spawn(); // Spawn! | |
pBox.SetSprite("assets/entities/box.png"); // Imagen | |
pBox.SetSize( 50.0, 50.0 ); // Tamaño | |
pBox.MyPhysics.SetDensity( 0.05 ); // Densidad | |
pBox.MyPhysics.SetRestitution( 0.5 ); // Restitución | |
// Resultado en el cliente: | |
// Una caja con la imagen "assets/entities/box.png" cayendo hasta el suelo (definido en otra parte). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for ( int i = 0; i <= 10; ++i ) | |
{ | |
// Creamos 10 entidades con físicas en las coordenadas 30,50 | |
PhysicsEntity pBox = new PhysicsEntity( 30.0, 50.0 ); | |
pBox.Spawn(); // Spawn! | |
pBox.SetSprite('assets/entities/box.png'); // Imagen | |
pBox.SetSize( 50.0, 50.0 ); // Tamaño | |
pBox.MyPhysics.SetDensity( 0.10 ); // Densidad | |
pBox.MyPhysics.SetRestitution( 0.5 ); // Restitución | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"GameInfo" | |
{ | |
game "BLACK SNOW" | |
title "" | |
developer "Taychin 'Kremator' Dunnvatanachit" | |
type singleplayer_only | |
gamelogo 0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m_iDamage = pKeyValuesData->GetInt( "Damage", 42 ); // Douglas Adams 1952 - 2001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Estados del Director: | |
// | |
// SLEEP: El Director entrara en un estado de "sueño" en el que no | |
// se crearán hijos de ningún tipo. El estado permanecerá hasta que el estres | |
// de los jugadores baje. | |
// | |
// RELAXED: Un estado de relajación en la que solo se creará una | |
// pequeña cantidad de hijos con proposito de ambientación. | |
// | |
// PANIC: Un evento de pánico en el que el Director creará varios |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div::after, | |
p::after, | |
header::after, | |
footer::after, | |
nav::after, | |
section::after, | |
hgroup::after, | |
article::after, | |
details::after, | |
figure::after, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Configs" | |
{ | |
"Games" | |
{ | |
"Alien Swarm" | |
{ | |
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Alien Swarm\swarm" | |
"Hammer" | |
{ | |
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Alien Swarm\bin\swarm.fgd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var status; | |
$(document).on('ready', function() | |
{ | |
$('#abrir').on('click', FBInit); | |
$.ajaxSetup({ cache: true }); | |
$.getScript('//connect.facebook.net/es_LA/all.js', function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Hola mundillo!</title> | |
<link rel="shortcut icon" type="image/x-icon" href="http://facebook.com/favicon.ico" /> | |
</head> | |
<body> | |
<header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div::after, | |
p::after, | |
header::after, | |
footer::after, | |
nav::after, | |
section::after, | |
hgroup::after, | |
article::after, | |
details::after, | |
figure::after, |