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
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
// 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
String.prototype.asPacket = function() | |
{ | |
Server.handle.on( this, eval('Packets.' + this) ); | |
}; | |
'Welcome'.asPacket(); | |
// Lo de arriba es lo mismo a poner: Server.handle.on( 'Welcome', Packets.Welcome ); |
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
<?php | |
####################################################### | |
# Creación del VPC. | |
####################################################### | |
# El siguiente Script le permite transformar una solución | |
# de Visual Studio al formato VPC. | |
# | |
# Los archivos VPC (Valve Project Creator) permiten la | |
# creación de los archivos necesarios para compilar el juego | |
# según la plataforma que este usando. |
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
.merror { | |
display: none; | |
color: red; | |
margin: 5px 10px; | |
font-family: "Roboto", Arial; | |
} | |
.bgform { | |
p { |
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
//========================================================= | |
// Devuelve una clase de hijo para crear. | |
//========================================================= | |
const char *CDirector_Manager::GetChildClass() | |
{ | |
if ( Director()->OverrideClass() == NULL ) | |
{ | |
// Código marca "Iván" para seleccionar una clase según su porcentaje de aparición. | |
// Lo sé, soy malo en matemáticas. ( Pero creo que funciona ) |
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
// Carpeta donde esta el modelo compilado en "SMD" | |
$cd "C:\Users\Kolesias123\Desktop\Ojo\New Folder" | |
// Nombre del archivo del modelo final. | |
$modelname "ojo.mdl" | |
// Nombre del modelo y su archivo compilado ( SMD ) | |
$model "Cube" "Cube.smd" | |
// Carpeta donde estaran las texturas |
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ódulo: Voice | |
* Funciones de comandos por voz en HTML 5. | |
*/ | |
Voice = | |
{ | |
Speech: null, // webkitSpeechRecognition | |
Recognizing: false, // ¿Estamos intentando reconocer la voz ahora mismo? | |
LastCommand: '', // Último comando |
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
UploadPhoto: function(photo) | |
{ | |
if ( API.Panel == null ) | |
return; | |
// Obtenemos información de la foto. | |
photo = Photos.Data(photo); | |
// Al parecer esta foto era invalida. | |
if ( photo == undefined ) |