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 - Jonki

Pages: [1]
1
Graphics / Re: Custom button class does not display.
« on: June 16, 2014, 06:38:31 am »
You're not supposed to have your render code inside the event loop. If there are no events, those functions won't be called.

2
Graphics / Re: A question about textures and drawing
« on: June 13, 2014, 06:29:38 pm »
My question is: Is the Draw 2, gonna perform a texture switch as well?

No, it's not going to.

3
General / Re: SFML on vs2013
« on: March 07, 2014, 05:34:12 pm »
VS2013 uses VC++ version 12, for which there's no pre-compiled package available (yet). You'll need to compile SFML yourself.

4
Graphics / Re: Alpha-Blending on top of Alpha Background
« on: December 13, 2013, 04:04:04 am »
Sounds like you need to disable blending while drawing the RenderTexture into the window.

5
Window / Re: emptying sf::Window from events?
« on: September 08, 2013, 01:47:55 am »
That will indeed freeze your program as soon as any event other than a key press is polled :D
To fix change the inner while into an if statement.

This doesn't resolve your initial problem, however. What you need to do is to keep running the empty event loop until you're ready to accept user input. After that, you can start listening for the key press event which will then move your app forward.

Again, please read the tutorial carefully, it's all there :)

6
Window / Re: emptying sf::Window from events?
« on: September 08, 2013, 12:50:32 am »
This line of code will empty the event buffer:


while (window.pollEvent(event));
 

I would recommend you to go through the tutorial (again), though. To me it seems you're not using the event system exactly like it's meant to.

7
I'm guessing you still may have not fully understood what others have suggested here, but there is another solution for your problem that might be easier to grasp. Simply put this following code at the start of your program while keeping your subsystem as console:

#include <Windows.h>

int main()
{
    #ifdef NDEBUG
            HWND hwnd = GetConsoleWindow();
            ShowWindow(hwnd, SW_HIDE);
    #endif

    //...
}
 

This is far from the best solution, as it only works in Visual Studio and the console window will still appear for a second or so, but it might be enough for your purposes. =)

8
SFML projects / Re: Space Dash - A very simple space side-scroller
« on: May 10, 2013, 04:30:48 pm »
Updated OP with a link to a new version of the game and a changelog.

9
SFML projects / Re: Space Dash - A very simple space side-scroller
« on: April 28, 2013, 11:43:22 am »
Thanks for the suggestions!

I'm not going to dump the current control scheme, but I could add some more options. Although I kinda want to move on to my next project, I'll see about adding those in an update. I'll also take a look at the .ogg format, thank you. :)

10
SFML projects / Re: Space Dash - A very simple space side-scroller
« on: April 27, 2013, 01:09:15 am »
Very cool.

Pros:
Great sound effects
Good graphics
Smooth and fluid

Cons:
Huge filesize
At times, the game is almost impossible even on easy. Meteors will cover the entire screen so it's impossible to evade them.

In all, great game! :)

Thanks for the feedback!

The size is mostly due to the music files being in .wav format. Each of them takes tens of megabytes.
The difficulty might be due to using a lower resolution. I designed the game using a 1080p monitor and didn't make the objects scale for lower resolutions. I may do an update to fix this in the coming days.


Thank you for trying out the game and glad you like it. :)

11
SFML projects / Space Dash - A very simple space side-scroller
« on: April 26, 2013, 04:23:30 pm »
This is the first game I have ever made, inspired by Copter Classic. May not be the best thing ever, but I'm very happy about how it turned out.  :)


Description

The game play is very simple. You control a little space rocket, trying to dodge asteroids coming towards you. To stay alive, you must also continually pick up fuel containers. The game will go on until you suffer lethal damage or restart/exit the game.

The game has 6 different difficulty levels. Easy, medium and hard, each with a hardcore variant. Scores are saved for each difficulty level separately.


Download

Space Dash 1.1 (Windows)
NOTE: Had you downloaded an earlier version and having problems with the new one, try deleting the old SDSettings.txt file located in C:\Users\USERNAME\Documents

Source code available at GitHub

Note that I will not take responsibility of any heart attacks or psychosis episodes resulting from observing the code. I'm very much still learning, and there will be flaws in my code. I will happily take any constructive advice, though.  :D

Changelog:
1.1 (10/5/2013)
- Added two more control scheme options
- Reduced file size

1.01 (26/4/2013)
- Initial release


Screenshots






Pages: [1]
anything