Sada je: 26 svi 2020, 22:15.
Igranje pod Linuxom.

Moderator/ica: Moderatori/ce

Da biste ju mogi pokrenuti morate imati instaliran SFML 2.1
(instalacija na ubuntuu sudo apt-get install libsfml-dev.

Download link:
http://www.mediafire.com/download/l04l6 ... n32.tar.gz

Source code:
http://www.mediafire.com/download/3ycpg ... source.zip

Controlls:
Player1: W, S
Player2: tipka UP, tipka DOWN

za kompaliranje linkajte lsfml-graphics -lsfml-window -lsfml-system
Više informacija na: http://www.sfml-dev.org/tutorials/2.1/start-linux.php
Zadnja izmjena: paupav; 30 srp 2014, 18:39; ukupno mijenjano 1 put/a.
Avatar
Postovi: 42
Postovi: 42
Pridružen/a: 29 lip 2013, 01:07
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Elementary OS Freya
ne mogu odkomprimirati nijedan od ta dva fajla.
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 10013
Moderator
Postovi: 10013
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 165 puta
Primio/la zahvalu: 272 puta
Spol: Y
OS: utuntu 19.10
Imaš li instaliran neki program za dekompresiju datoteka?
Avatar
Postovi: 42
Postovi: 42
Pridružen/a: 29 lip 2013, 01:07
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Elementary OS Freya
Podjeća me sličnu igricu koju sam davno napravio (u Borlandovom Pascalu i DOS-u, još nisam znao za Linux). Inače, bilo bi zgodno da ljudima napišeš (nekakav README barem) kako to iskompajlirati (nisam bio siguran što sve linkati) i sa kojim tipkama se igra (da baš ne moraju tržiti po kodu :D).

Preporučam da dodaš još dva 'igrača' koji se mogu kretati (lijevo-desno, paralelno gore-dolje sa 'golmanima'), svaki na svojoj polovici, postati će dinamičnije... ;)
Avatar
Postovi: 67
Postovi: 67
Pridružen/a: 27 kol 2013, 08:58
Lokacija: Ivanec
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 2 puta
Spol: M
OS: Arch / Ubuntu / GNOME
paupav je napisao/la:Imaš li instaliran neki program za dekompresiju datoteka?


imam ih sve :D
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 10013
Moderator
Postovi: 10013
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 165 puta
Primio/la zahvalu: 272 puta
Spol: Y
OS: utuntu 19.10
shrike je napisao/la:
paupav je napisao/la:Imaš li instaliran neki program za dekompresiju datoteka?


imam ih sve :D


Hmm. Je možeš barem otvorit arhivu?
Avatar
Postovi: 42
Postovi: 42
Pridružen/a: 29 lip 2013, 01:07
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Elementary OS Freya
koristio sam wget da skinem direktno preko ona dva linka, no tek kasnije sam skužio da to nisu direktni linkovi već ide na strnaicu. Ne radi mi ni ova za 32 bitni jer mi fali "libsfml-window.so.2" kojeg uopće nemam u repou. A source ne mogu kompilrati.
Kod: Označi sve
main.cpp: In function ‘int main()’:
main.cpp:16:5: error: ‘Texture’ is not a member of ‘sf’
main.cpp:16:17: error: expected ‘;’ before ‘heartT’
main.cpp:20:5: error: ‘heartT’ was not declared in this scope
main.cpp:30:20: error: ‘class sf::Sprite’ has no member named ‘setTexture’
main.cpp:31:20: error: ‘class sf::Sprite’ has no member named ‘setScale’
main.cpp:32:40: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:33:20: error: ‘class sf::Sprite’ has no member named ‘setPosition’
main.cpp:33:46: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:35:20: error: ‘class sf::Sprite’ has no member named ‘setTexture’
main.cpp:36:20: error: ‘class sf::Sprite’ has no member named ‘setScale’
main.cpp:37:20: error: ‘class sf::Sprite’ has no member named ‘setPosition’
main.cpp:37:59: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:42:5: error: ‘Time’ is not a member of ‘sf’
main.cpp:42:14: error: expected ‘;’ before ‘ballMovementT’
main.cpp:44:5: error: ‘Text’ is not a member of ‘sf’
main.cpp:44:14: error: expected ‘;’ before ‘gameOverText’
main.cpp:47:10: error: ‘class sf::Font’ has no member named ‘loadFromFile’
main.cpp:49:5: error: ‘gameOverText’ was not declared in this scope
main.cpp:83:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:83:24: error: expected ‘;’ before ‘player1’
main.cpp:84:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:84:24: error: expected ‘;’ before ‘player2’
main.cpp:85:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:85:24: error: expected ‘;’ before ‘ball’
main.cpp:86:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:86:24: error: expected ‘;’ before ‘UIspace’
main.cpp:90:5: error: ‘UIspace’ was not declared in this scope
main.cpp:90:66: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:96:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:96:24: error: expected ‘;’ before ‘lineOfDeath1’
main.cpp:97:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:97:24: error: expected ‘;’ before ‘lineOfDeath2’
main.cpp:98:5: error: ‘lineOfDeath1’ was not declared in this scope
main.cpp:99:5: error: ‘lineOfDeath2’ was not declared in this scope
main.cpp:101:18: error: ‘class sf::RenderWindow’ has no member named ‘isOpen’
main.cpp:108:9: error: ‘player1’ was not declared in this scope
main.cpp:109:9: error: ‘player2’ was not declared in this scope
main.cpp:111:9: error: ‘ballMovementT’ was not declared in this scope
main.cpp:111:39: error: ‘class sf::Clock’ has no member named ‘getElapsedTime’
main.cpp:115:9: error: ‘ball’ was not declared in this scope
main.cpp:121:27: error: ‘class sf::Clock’ has no member named ‘restart’
main.cpp:146:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:146:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:148:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:148:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:150:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:150:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:152:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:152:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:157:12: error: ‘class sf::RenderWindow’ has no member named ‘clear’
main.cpp:158:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:159:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:160:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:168:22: error: ‘class sf::Clock’ has no member named ‘restart’
main.cpp:182:9: error: ‘respawnT’ was not declared in this scope
main.cpp:182:29: error: ‘class sf::Clock’ has no member named ‘getElapsedTime’
main.cpp:202:16: error: ‘sf::Keyboard’ has not been declared
main.cpp:202:43: error: ‘sf::Keyboard’ has not been declared
main.cpp:216:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:219:18: error: ‘class sf::RenderWindow’ has no member named ‘pollEvent’
main.cpp:221:23: error: ‘class sf::Event’ has no member named ‘type’
main.cpp:224:20: error: ‘class sf::RenderWindow’ has no member named ‘close’
main.cpp:237:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:240:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:243:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:244:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:245:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:246:12: error: ‘class sf::RenderWindow’ has no member named ‘display’
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 10013
Moderator
Postovi: 10013
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 165 puta
Primio/la zahvalu: 272 puta
Spol: Y
OS: utuntu 19.10
sudo apt-get install libsfml-dev
g++ -c main.cpp movement.cpp screen.cpp
g++ main.o movement.o screen.o -o bouncing -lsfml-graphics -lsfml-window -lsfml-system
Avatar
Postovi: 67
Postovi: 67
Pridružen/a: 27 kol 2013, 08:58
Lokacija: Ivanec
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 2 puta
Spol: M
OS: Arch / Ubuntu / GNOME
Isprobao sam i zanimljiva je :thmb-up

Jedino sto sam igro sam sa sobom pa je bilo malo glupo :)
Avatar
Postovi: 406
Postovi: 406
Pridružen/a: 15 lis 2013, 01:42
Lokacija: BiH, Kakanj
Podijelio/la zahvalu: 46 puta
Primio/la zahvalu: 30 puta
Spol: M
OS: Arch / Manjaro / #!
shrike je napisao/la:koristio sam wget da skinem direktno preko ona dva linka, no tek kasnije sam skužio da to nisu direktni linkovi već ide na strnaicu. Ne radi mi ni ova za 32 bitni jer mi fali "libsfml-window.so.2" kojeg uopće nemam u repou. A source ne mogu kompilrati.
Kod: Označi sve
main.cpp: In function ‘int main()’:
main.cpp:16:5: error: ‘Texture’ is not a member of ‘sf’
main.cpp:16:17: error: expected ‘;’ before ‘heartT’
main.cpp:20:5: error: ‘heartT’ was not declared in this scope
main.cpp:30:20: error: ‘class sf::Sprite’ has no member named ‘setTexture’
main.cpp:31:20: error: ‘class sf::Sprite’ has no member named ‘setScale’
main.cpp:32:40: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:33:20: error: ‘class sf::Sprite’ has no member named ‘setPosition’
main.cpp:33:46: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:35:20: error: ‘class sf::Sprite’ has no member named ‘setTexture’
main.cpp:36:20: error: ‘class sf::Sprite’ has no member named ‘setScale’
main.cpp:37:20: error: ‘class sf::Sprite’ has no member named ‘setPosition’
main.cpp:37:59: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:42:5: error: ‘Time’ is not a member of ‘sf’
main.cpp:42:14: error: expected ‘;’ before ‘ballMovementT’
main.cpp:44:5: error: ‘Text’ is not a member of ‘sf’
main.cpp:44:14: error: expected ‘;’ before ‘gameOverText’
main.cpp:47:10: error: ‘class sf::Font’ has no member named ‘loadFromFile’
main.cpp:49:5: error: ‘gameOverText’ was not declared in this scope
main.cpp:83:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:83:24: error: expected ‘;’ before ‘player1’
main.cpp:84:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:84:24: error: expected ‘;’ before ‘player2’
main.cpp:85:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:85:24: error: expected ‘;’ before ‘ball’
main.cpp:86:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:86:24: error: expected ‘;’ before ‘UIspace’
main.cpp:90:5: error: ‘UIspace’ was not declared in this scope
main.cpp:90:66: error: ‘class sf::Sprite’ has no member named ‘getGlobalBounds’
main.cpp:96:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:96:24: error: expected ‘;’ before ‘lineOfDeath1’
main.cpp:97:5: error: ‘RectangleShape’ is not a member of ‘sf’
main.cpp:97:24: error: expected ‘;’ before ‘lineOfDeath2’
main.cpp:98:5: error: ‘lineOfDeath1’ was not declared in this scope
main.cpp:99:5: error: ‘lineOfDeath2’ was not declared in this scope
main.cpp:101:18: error: ‘class sf::RenderWindow’ has no member named ‘isOpen’
main.cpp:108:9: error: ‘player1’ was not declared in this scope
main.cpp:109:9: error: ‘player2’ was not declared in this scope
main.cpp:111:9: error: ‘ballMovementT’ was not declared in this scope
main.cpp:111:39: error: ‘class sf::Clock’ has no member named ‘getElapsedTime’
main.cpp:115:9: error: ‘ball’ was not declared in this scope
main.cpp:121:27: error: ‘class sf::Clock’ has no member named ‘restart’
main.cpp:146:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:146:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:148:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:148:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:150:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:150:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:152:12: error: ‘sf::Keyboard’ has not been declared
main.cpp:152:39: error: ‘sf::Keyboard’ has not been declared
main.cpp:157:12: error: ‘class sf::RenderWindow’ has no member named ‘clear’
main.cpp:158:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:159:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:160:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:168:22: error: ‘class sf::Clock’ has no member named ‘restart’
main.cpp:182:9: error: ‘respawnT’ was not declared in this scope
main.cpp:182:29: error: ‘class sf::Clock’ has no member named ‘getElapsedTime’
main.cpp:202:16: error: ‘sf::Keyboard’ has not been declared
main.cpp:202:43: error: ‘sf::Keyboard’ has not been declared
main.cpp:216:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:219:18: error: ‘class sf::RenderWindow’ has no member named ‘pollEvent’
main.cpp:221:23: error: ‘class sf::Event’ has no member named ‘type’
main.cpp:224:20: error: ‘class sf::RenderWindow’ has no member named ‘close’
main.cpp:237:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:240:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:243:16: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:244:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:245:12: error: ‘class sf::RenderWindow’ has no member named ‘draw’
main.cpp:246:12: error: ‘class sf::RenderWindow’ has no member named ‘display’

Potrebno je instalirati libsfml-dev
Ako si na ubuntuu 12.04 ili niže u reposu imaš samo stariju verziju SFMLa s kojom ja mislim da nebi mogao pokrenuti igrici. Na archu, debianu i novijim verzijama Ubuntua sam provjerio i trebalo bi raditi.
Avatar
Postovi: 42
Postovi: 42
Pridružen/a: 29 lip 2013, 01:07
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Elementary OS Freya

Na mreži
Trenutno korisnika/ca: / i 1 gost.