Stranica: 1/2.

Molim vas da isprobate moju novu SFML igricu

PostPostano: 28 srp 2014, 19:54
Postao/la paupav
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

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 28 srp 2014, 20:03
Postao/la shrike
ne mogu odkomprimirati nijedan od ta dva fajla.

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 29 srp 2014, 20:33
Postao/la paupav
Imaš li instaliran neki program za dekompresiju datoteka?

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 29 srp 2014, 20:57
Postao/la shabek
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... ;)

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 29 srp 2014, 21:52
Postao/la shrike
paupav je napisao/la:Imaš li instaliran neki program za dekompresiju datoteka?


imam ih sve :D

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 30 srp 2014, 18:45
Postao/la paupav
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?

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 30 srp 2014, 19:42
Postao/la shrike
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’

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 30 srp 2014, 20:53
Postao/la shabek
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

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 31 srp 2014, 00:47
Postao/la gagiD
Isprobao sam i zanimljiva je :thmb-up

Jedino sto sam igro sam sa sobom pa je bilo malo glupo :)

Re: Molim vas da isprobate moju novu SFML igricu

PostPostano: 31 srp 2014, 11:58
Postao/la paupav
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.