Skip to content

Instantly share code, notes, and snippets.

name: Build project
on:
workflow_dispatch:
pull_request:
types: [closed]
jobs:
buildForWebGL: [...]
uploadToFTP:
name: Upload to FTP
runs-on: ubuntu-latest
@kawzar
kawzar / test.c
Last active March 31, 2022 16:24
void parcial(Auto* arreglo, int longitud) {
int antiguedades[longitud];
int anioActual = 2021;
int promedioAntiguedades = 0;
for(int i = 0; i < longitud; i++) {
antiguedades[i] = anioActual - arreglo[i].anio;
promedioAntiguedades = promedioAntiguedades + antiguedades[i];
}
printf(promedioAntiguedades)
name: Build project
on:
workflow_dispatch:
jobs:
buildForWebGL:
name: Build for WebGL
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
name: Build project
on:
workflow_dispatch:
jobs:
buildForWebGL:
name: Build for WebGL
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
@kawzar
kawzar / build.yml
Created January 21, 2022 01:23
Unity build and copy to FTP workflow
name: Build project
on:
workflow_dispatch:
pull_request:
types: [closed]
jobs:
buildForWebGL:
name: Build for WebGL
runs-on: ubuntu-latest
strategy:
@kawzar
kawzar / Tamagotchi.cs
Last active April 1, 2020 19:43
Tamagotchi (Introducción a la programación de videojuegos desde cero! - Clase #4)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Tamagotchi : MonoBehaviour
{
// El estomago de nuestra mascota
public float stomach = 100;
// La vida social de nuestra mascota
@kawzar
kawzar / intro.cpp
Created August 8, 2019 00:40
Manipulacion de objetos en 2D - Avion
// TP 2 - MO2D
//
#include <iostream> // cout
#include <cstdlib> // exit
#include <cmath> // fabs
#include <GL/glut.h>
#include "Teclado.h"
#include "uglyfont.h"
void GameManager::printHighscores() {
clrscr();
gotoxy(5, 2);
textcolor(10);
cout << "GAME OVER!" << endl;
cout << "Score is: "<< formation->getScore();
Score* highScores[5];
scoreManager->getHighScores(highScores);
class Score{
public:
Score() {};
char name[10];
int score;
};
#include "ScoreManager.h"
#include <fstream>
#include <iostream>
#include <cstring>
using namespace std;
ScoreManager::ScoreManager(){
}
void ScoreManager::getHighScores(Score* highScores[5]){