Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <stdlib.h>
- #include <conio.h>
- #include <cstdlib>
- #include <string>
- #include "przeciwnik.h"
- using namespace std;
- string gotowaplansza = "";
- //przeciwnik zerg1;
- //predefinicja jakiegos gowna
- //jebac papieza polaka pedofila jebanego
- void zapelnianie()
- {
- if (y == 0)
- for (int i = 0; i < 30; i++)
- {
- plansza[0][i] = '1';
- plansza[29][i] = '1';
- }
- for (y = 1; y < 29; y++)
- {
- for (x = 0; x < 30; x++)
- {
- if (x == 0)
- plansza[y][x] = '1';
- else if (x == 29)
- plansza[y][x] = '1';
- else
- plansza[y][x] = '.';
- }
- }
- }
- //cimcirimci rysowanko
- void rysowanie() {
- gotowaplansza = "";
- for (y = 0; y < 30; y++)
- {
- for (x = 0; x < 30; x++)
- {
- gotowaplansza= gotowaplansza + (plansza[y][x]);
- gotowaplansza.append(" ");
- }
- gotowaplansza.append("\n");
- }
- system("cls");
- cout << gotowaplansza ;
- }
- //funkcja main, nic niezwyklego
- int main() {
- srand(time(NULL));
- zapelnianie();
- plansza[postac.Y][postac.X] = 'O';
- system("MODE CON COLS=61 LINES=31");
- zerg karol;
- rysowanie();
- while (1)
- {
- postac.ruch();
- karol.ruchzerg();
- rysowanie();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement