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

Pages: [1]
1
Window / How can you avoid showing the console in the background?
« on: February 09, 2012, 06:38:42 pm »
Just set the Build Target to "GUI Application" instead of "Console Application"

In CodeBlocks for example in Project->Settings->Build targets->Type

I personally let the Debug build as an Console app so you can show information you need for debugging etc. And the Release build as an GUI Application

2
Window / View for vertical shooter or not ?
« on: February 09, 2012, 01:40:00 am »
Thank you very much for your time.. :)

3
Window / View for vertical shooter or not ?
« on: February 09, 2012, 12:58:07 am »
None of the sprites need to be static, but they have to be movable in the Window itself not in the View..  If I would use a View I would had to calculate where the view is in the scene and translate the "5 pixel up" to the current position of the view in order to move up 5 pixel on the Window, because the view would move every tick a certain amount of pixels down...

You know what I mean ? Like in the Spaceinvaders games...

So I thought just scroll the background and don't use the view...
I currently don't talk about the UI.

But I could think of a use of the views to spereate the sprites and the UI because the UI takes a 100px width on the right side on the window. But for the game mechanics itself I don't see any use of the view in this kind of game.. Or am I wrong ?

4
Window / View for vertical shooter or not ?
« on: February 08, 2012, 11:38:25 pm »
Hi there I'm currently making a vertical shooter in SFML. This is my first Project in SFML so I'm new.

I have a question about the view:
Would it be better to use a view for an vertical shooter OR
Would it be better to just scroll the background and let the enemies appear on given time values...

I'm started with a view and ran in to a few problems, that's the reason I'm asking.

Because if i use a view I have to adjust nearly everything on the screen to the view, so I have to add a given value to the y position to every sprite in every tick to hold the whole sprite list in the center of the Window. Sounds not very good for the resources and the speed of the program.

So I assume the view is just a good choice for games like 2D RPG's. But I don't know if I'm right so I hope you can help me out with that. Or are there features in the view for that? I found the ConvertCoords function but it didn't served my needs..

Thank you. :?:

Pages: [1]
anything