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 - Kingdom of Fish

Pages: [1] 2 3 ... 5
1
General / Handling time?
« on: October 18, 2010, 11:11:09 pm »
What you want to be looking at is threads.

2
Graphics / How format and draw variables on screen
« on: September 18, 2010, 11:10:53 am »
If you are using C++ look at stringstreams.

3
Graphics / Array Points
« on: September 12, 2010, 11:35:12 pm »
Quote from: "Disch"
I was going to recommend std::list instead of std::vector, but yeah.


I would still recommend std::vector since this task does not seem to be in need of inserting stuff in the midle of the array (which is what std::list is good at).

4
Graphics / Array Points
« on: September 12, 2010, 12:30:34 pm »
@Wander: I'm guessing you are using C++, look up std::vector. Otherwise look for lists in whatever language you use.

5
Graphics / Array Points
« on: September 12, 2010, 03:09:01 am »
Just draw the same shape several times each frame...

Code: [Select]
Draw(shape)
shape.SetPosition()
Draw(shape)
shape.SetPosition()
Draw(shape)
Display()

6
Graphics / Optimizing tilerendering
« on: September 09, 2010, 11:23:54 pm »
I'm curious if there are any simple optimizations to rendering tiles in SFML2 that you really need to know about.

I was thinking about caching parts of the screen in larger images instead of drawing each tile every frame. Is this even worth it? SFML2 seems to be pretty fast with tiles anyway and I would hate to hack together a bunch of code and figure out it was just a big waste of time and clever thinking.

7
SFML projects / Re: "The Standard Engine"
« on: September 06, 2010, 06:51:47 pm »
Quote from: "model76"
Quote from: "doc"
From the law's point of view there's no such thing as public domain.
Wrong! The copyright holder can release their work into the public domain. There is nothing to prevent one from doing so.


it depends in what country you mean...

8
Graphics / Problem when rendering images
« on: September 03, 2010, 02:19:59 pm »
What version of SFML are you using? (I'm guessing 1.6)

9
General / Some beginer's remarks
« on: September 03, 2010, 02:06:41 pm »
You should really start this out by googling object oriented design and reading up on how c++ works.

Object orientation:
http://www.oodesign.com/ - This seems like a pretty awesome page but I haven't used it myself... yet.
http://download.oracle.com/javase/tutorial/java/concepts/ - This is Java but the theories are applicable.

C++:
http://www.cplusplus.com/doc/tutorial/ - My goto page when it comes to c++.

10
System / Re: Thread prob
« on: August 27, 2010, 10:23:54 am »
Quote from: "Xenavar"
Code: [Select]
sf::Thread Thread(&Attacks[Index].Start_Animation());

However, I get the following error:

Code: [Select]
C:\Users\Steven\Desktop\RPG\PC.cpp|225|error: request for member `Start_Animation' in `((PC*)this)->PC::Attacks[((int)Index)]', which is of non-class type `Attack*'|


You are starting a thread using what Start_Animation returns (which is a Attack pointer) and not the function itself. Skip the extra ()

11
General / Tile Based Movement
« on: August 21, 2010, 12:25:41 pm »
You just set the position, my tip is to divide the screen or area of the game into squares of something like 16px and then you just set the position by sprite.SetPosition(grid_x*16, grid_y*16);

12
General / Drawing and Loading: One of it in a thread; Possible?
« on: August 16, 2010, 11:39:04 pm »
Oh, sorry  :oops:

13
General / Drawing and Loading: One of it in a thread; Possible?
« on: August 16, 2010, 10:38:43 pm »
All drawing has to be made from the same thread, set the worker thread to load data instead.... there are texts about it on the wiki.

14
Feature requests / Anti-Grain Geometry
« on: June 17, 2010, 02:39:02 am »
Quote from: "ilukha"
Thanks a lot, looking forward to seeing Cairo in SFML! :)


Cairo will not (i believe) and should not be included in SFML, it is pretty easy to integrate cairo into sfml using a simple image based class (like so http://www.sfml-dev.org/wiki/en/sources/cairoshape) and using that to draw vector based graphics and svg.

15
General / [Solved] 3D camera and events
« on: June 17, 2010, 02:34:24 am »
Well, first of all, you are using global variables. I mean no disrespect but you really should go back and learn C++ (simple terminal stuff). Once you have a variable outside the current scope it won't reset until you tell it too.

And also, DO NOT use global variables... never...

Pages: [1] 2 3 ... 5