Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - paupav

Pages: [1] 2 3
1
General / Best technique to create infinite sidescroller
« on: November 16, 2023, 10:43:29 pm »
Hi all,
I couldn't find any thread regarding best techniques to create infinite sidescroller.
I thought there would be something like sf::View::set_loop(bool); function that would make it so that if you sf::View::move() outside of the view it would overflow to show start. But there isn't such a feature  :(

For example think of a game like flappy bird, one would want to simply create 2xWidth render size view and infinitely scroll, add pipes as it goes along and view gets recycled
But just keeping bird steady and moving pipes is ok too I guess.

2
General / sfml with gcc 5.2
« on: February 03, 2016, 10:39:29 pm »
compile it and put on the website plox
I'm getting error message:   undefined reference to `sf::Texture::loadFromFile(std::string const&, sf::Rect<int> const&)'|

3
Network / Simple UDP connection that transfers message using packets
« on: January 02, 2016, 11:36:43 pm »
So, I don't know why this isn't working. I've read some documentation and I've made this code. Both server and client are ran on the same machine.
SERVER
(click to show/hide)

CLIENT:
(click to show/hide)

4
SFML projects / boxGame
« on: December 30, 2015, 11:21:53 pm »
So, I wanna create simple multi player game and here is what I've done so far. Please comment, criticize etc. Idk if this is correct way to do state machine.
https://github.com/paupav/boxGame

http://www.youtube.com/watch?v=rczu5bvQ8h0

5
General / Rotating player depending on the mouse position
« on: November 23, 2015, 07:29:01 pm »
So basically I wanna make player1 rotate and always look at the cursor, but I'm stuck. For some reason code below doesn't work

 
click1Pos.x = (int)sf::Mouse::getPosition(cliff->window).x;
        click1Pos.y = (int)sf::Mouse::getPosition(cliff->window).y;
        moveToCursor = true;

        double one = playerYposition - mouseYposition;
        double two = playerX - mouseXposition;
        double tanges = (tan(one/two)* RAD);

        player1.setRotation(tanges);

6
General / Segmentation fault when trying to draw sprite[10]
« on: November 21, 2015, 03:50:13 am »
i have pointer in second cpp which points to window and when im trying to draw sprite[10] I get segmentation fault.

window->draw(boxS[10]);

7
SFML website / Precompiled binaries Linux 64bit problem
« on: February 26, 2015, 10:13:49 pm »
Basically when you download Linux 64 bit binaries from the SFML website there are 3 files named : "include" "share" and "lib". If you copy that to /usr/local and then compile your program, you should get this error in the terminal:
error while loading shared libraries: libsfml-graphics.so.2

I've renamed "lib" folder which was extracted from the SFML to "lib64" and copied it to /usr/local and now everything works

8
Feature requests / Auto creating folder if it doesn't exist
« on: December 28, 2014, 02:43:58 pm »
When you are saving something like screenshot using sf::RenderWindow::Capture() and when you are trying to save it to some folder and if that folder doesn't exist, why doesn't it get create it?

9
General / Is it fine to have sf::Font and sf::Text as global
« on: December 28, 2014, 01:35:53 pm »
So, i have

namespace menu
{
    void loadFiles();
    void menu(sf::RenderWindow &window);
    void main(sf::RenderWindow &window);
    void options();

}

and I have sat up Text and Font inside the menu::loadFiles, and I'm drawing it inside the menu::main(). I've made them global so that I can use it inside both functions and I wanna know is it fine to have them global or should I find some other way?

10
SFML projects / testEngine
« on: October 19, 2014, 10:29:53 pm »
Can anyone give me review on this basic game engine, and tell me if I'm on the right path or should I abandon it and start writing new one.

https://github.com/paupav/testEngine

11
General / Statically linking SFML
« on: September 04, 2014, 02:42:22 am »
Am I allowed to statically link SFML or can I only dynamically link it?

12
SFML website / Can't send message
« on: August 21, 2014, 09:33:04 pm »
Whenever I try to send message I get confirmation that the message is sent, but it isn't listed under sent messages.

13
Network / Is SFML network enough for making MMO game
« on: August 21, 2014, 03:14:50 pm »
Like this one:

http://www.youtube.com/watch?v=oLvwIrSk6Rs

Also, why can't I post youtube links!

14
Graphics / when to open new rendervindow?
« on: August 21, 2014, 03:05:38 am »
So I've made a game in which at start is shown Main Menu, and when I click game start user can clearly see that one window is closing and another one opening. How do you guys get rid of that transition. Am I doing something wrong?

Here is link to my game if you don't understand what I'm talking about: http://en.sfml-dev.org/forums/index.php?topic=16130.msg115346#new

15
General discussions / OpenGL is going to be completely rewritten
« on: August 21, 2014, 01:26:21 am »
http://www.phoronix.com/scan.php?page=news_item&px=MTc2ODQ

It says:
- OpenGL-Next is a ground-up design of a modern 3D+Compute API and will break compatibility with existing OpenGL implementations.

(click to show/hide)

Pages: [1] 2 3