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.


Messages - reethok

Pages: [1] 2
1
General discussions / Re: Looking for a dev partner
« on: March 25, 2016, 11:36:16 am »
Skills I'm looking for:
 
- C++ / SFML
- General game dev knowledge
- Preferably somone interested in strategy/rpg

I'm interested in making games in general, I don't have a specific idea yet, though. I want to practice and have somone with whom to discuss game ideas

2
General discussions / Looking for a dev partner
« on: March 25, 2016, 05:17:55 am »
Hello!

I'm a self taught programmer, been doing it on and off for approximetely 5 years. After a break of about 2 years I'm trying to get into game dev again.
 
I would like to find somone with who to do small-medium sized projects as a hobby / practice, maybe eventually do a more professional project if we see we can work together well.
 
I'm by no means an expert, but I can get around most issues I encounter with the help of Google :)

I think I work better with other people than alone because I like to discuss different ideas etc and if I do something on my own I lose interest/motivation pretty fast.
 
I can dedicate 10-20 hours per week into it. I'm located in europe but I do a lot of nightshifts so my schedule is variable. I speak english, spanish and hungarian.
 
Anyone interested?

3
Hello!,

It may be slightly off topic (as it's not entirely SFML related) but didn't knew where to ask. For some reason, when I launch my program from Visual Studio directly, it won't load the resources.

I have pasted the png files I use in my project in literally every folder inside the VS project directory, but it still doesn't work. I must add that it works correctly if i launch the exe from outside VS2015, but it's annoying having to do it every time.

Any ideas of why does this happen? Do I need to add all my resources to the IDE in the "resource Files" section?

Thanks in advance! :)

4
Graphics / How to make a resolution independant program in SFML?
« on: February 17, 2015, 11:03:17 pm »
Hi!

I'm wondering if there is a straightfoward way to scale / calculate positions of the sprites showed on screen depending on the resolution selected, or do I have to manually code it?

Any ideas on how can I do it?

Thank you :)

5
Graphics / Re: After using setScale, sprite not showing on the RenderWindow
« on: February 17, 2015, 02:36:12 pm »
xscale = xresolution / 1920;
yscale = yresolution / 1080;

In this case,

xscale is 6.85714285714 and yscale is 0.66666666666.

I'm using SFML 2.2, by the way, and thanks for the super fast reply o.o

6
Graphics / After using setScale, sprite not showing on the RenderWindow
« on: February 17, 2015, 02:31:23 pm »
I have tested without setScale and in that case it does show the sprite (tho only a part of it fits the window).

Here's the code:

void Game::showSplash()
{
        sf::Texture splash_txt;
        if (!splash_txt.loadFromFile("splash.jpg"))
        {
                std::cout << "Cant load splash" << std::endl;
        }

        sf::Sprite splash_spr;
        splash_spr.setTexture(splash_txt);
        splash_spr.setScale(xscale, yscale);

        mainWindow.draw(splash_spr);
        sf::Clock clock;

        while (clock.getElapsedTime().asSeconds() < 10)
        {
                mainWindow.display();
        }

        gameState = GameState::MAIN_MENU;
}
 

xscale and yscale are static variables from the class Game.  I also have tried with different combinations of display(), draw() and clear(), such as:

mainWindow.clear();
mainWindow.draw(splash_spr);
mainWindow.display();

What am I doing wrong? D:

7
SFML website / Why isnt there a download for visual studio 2013?
« on: November 22, 2014, 06:05:56 am »
I'm trying to compile SFML for VS2013 but I just cant make it work. So, it made me wonder, why the faq isn't there a direct download for it? -_-

/endofrant

8
Something like this:



But will be many different animations (laser and different kind of bullets).

It's for a simple Tower Defense game I want to do. I know how to do everything allready except the collition part.

What i want is t skip the total transparency (it doesnt count of rthe collition), and to set a lvloftransparency that counts. (In that laser sprite, just the brightest will count for the cllition)

Sorry for my crappy english :A

9
Different form sprites with transparency. Also, as there will be many of them, i need some efficiency

10
I just need collision detection :)

Greetings.

11
Window / Re: Multiple views in a RenderWindow
« on: May 17, 2013, 07:10:17 pm »
I know, just fast writing.

So, what should I do to mantain a perfect proportion? :/

12
Window / Re: Multiple views in a RenderWindow
« on: May 17, 2013, 01:02:53 am »
Finally I did it. Thank you very much. Now my issue is that... the rotated views are a little distorted...



I think it is becouse the viewport dont have a exact size:

    sf::View view1(sf::FloatRect(0, 0, 150, 150));
    view1.setViewport(sf::FloatRect(0, 0, 0.5f, 0.33333f));

    sf::View view2(sf::FloatRect(0, 0, 150, 150));
    view2.setViewport(sf::FloatRect(0.5f, 0, 0.5f, 0.33333f));
    view2.setRotation(90);

    sf::View view3(sf::FloatRect(0, 0, 150, 150));
    view3.setViewport(sf::FloatRect(0, 0.33333f, 0.5f, 0.33333f));
    view3.setRotation(180);

    sf::View view4(sf::FloatRect(0, 0, 150, 150));
    view4.setViewport(sf::FloatRect(0.5f, 0.33333f, 0.5f, 0.33333f));
    view4.setRotation(270);

    sf::View view5(sf::FloatRect(0, 0, 150, 150));
    view5.setViewport(sf::FloatRect(0, 0.66666f, 0.5f, 0.33333f));
    view5.setRotation(45);

    sf::View view6(sf::FloatRect(0, 0, 149, 149));
    view6.setViewport(sf::FloatRect(0.5f, 0.66666f, 0.5f, 0.33333f));
    view6.zoom(0.5f);

I mean 0.33333f... etc. Should I use 1/3?

13
Window / Re: Multiple views in a RenderWindow
« on: May 16, 2013, 08:46:04 pm »
Thanks for your answer. I have read the tutorial but it dont says how to draw the multiple views. Views are drawable items? So i draw each one in a different position of the window?

14
Window / Multiple views in a RenderWindow
« on: May 16, 2013, 08:05:33 pm »
How do I put multiple views to a render window?

I have this code:

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow ventana(sf::VideoMode(300, 450, 32), "views",
                             sf::Style::Close);
    ventana.setFramerateLimit(30);

    sf::Sprite sprite;
    sf::Texture texture;

    texture.loadFromFile("asdf.png");
    sprite.setTexture(texture);

    sf::Sprite s_p;
    sf::Texture t_p;

    // 18x19
    t_p.loadFromFile("per.png");
    s_p.setTexture(t_p);

    sf::View view1(sf::FloatRect(0, 0, 149, 149));
    sf::View view2(sf::FloatRect(0, 0, 149, 149));
    view2.setRotation(90);
    sf::View view3(sf::FloatRect(0, 0, 149, 149));
    view3.setRotation(180);
    sf::View view4(sf::FloatRect(0, 0, 149, 149));
    view4.setRotation(270);
    sf::View view5(sf::FloatRect(0, 0, 149, 149));
    view5.setRotation(45);
    sf::View view6(sf::FloatRect(0, 0, 149, 149));
    view6..zoom(0.5f);

    for(int i = 0; i < 3600; i++)
    {
        ventana.clear();
        ventana.draw(sprite);
        ventana.display();
    }
}

I want to have a 150x150 world, in wich i have only a background image or color (preferably, for the 45° degree rotated view), and to set the views in the window this way:



What I want is to display the same world with different perspectives.

Thank you.

15
General / How to uninstall SFML2 rc?
« on: May 14, 2013, 01:10:36 am »
Well, as the stable release is out, i want to uninstall the RC, but i just dont know how.

I followed this tutorial to install it:

http://en.sfml-dev.org/forums/index.php?topic=9808.0

Greetings, and thanks.

Pages: [1] 2
anything