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

Pages: [1] 2 3 4
1
General / Re: Gamestates - in which order?
« on: February 18, 2018, 04:51:36 pm »
Oh i see.

1. update
2. collision
3. draw

but where to put spawn enemies?

2
General / Gamestates - in which order?
« on: February 18, 2018, 04:39:25 pm »
Hello!

Ive got 4 states of my game.

1. update
2. check collision
3. spawn enemies
4. draw

And I wonder in which order I should put these.
I am sorry If something like this post has been written already 100 times.
What can I say, Im a nab  :)

Best regards,
Bizarreofnature

3
System / Re: Easy way to load files from zip
« on: February 13, 2018, 05:01:15 pm »
Well, thank you very much. Its still a bit complicated to me and i guess i will make this at very last of my game.
I guess my c++ is not good enough yet to understand this  :(

4
System / Re: Easy way to load files from zip
« on: February 09, 2018, 05:43:41 pm »
Ok thanks. Ill try my best (looks difficult).

In fact, this is the only thing i dont understand:

Quote
tex.loadFromStream(wonderfullStream);

What exactly is returned there? An entire class + sub class?

5
System / Re: Easy way to load files from zip
« on: February 09, 2018, 05:21:40 pm »
So one more question. Since i dont understand the tutorial completely, i tried to make it on my own.

Quote
PHYSFS_init (0);

   PHYSFS_addToSearchPath ("Game.zip", 1);

   PHYSFS_file* myfile = PHYSFS_openRead ("Game/Sprites/Title.tga");

        sf::Texture tex;
   tex.loadFromStream(??);

   PHYSFS_close(myfile);

   PHYSFS_deinit ();

how do i load myfile to loadfromstream?  :(

6
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:51:34 pm »
It's add, not Add. Where did you take the uppercase name from?

IT WORKS! HA! Thank you so much  ;D

I got it from the tutorial of physicsfs website.

Edit: yes

7
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:47:05 pm »
Quote
identifier ""PHYSFS_AddToSearchPath"" is undefined

btw, for example the following works without problems:

Quote
PHYSFS_init (0);

8
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:42:57 pm »
Quote
C:\Users\*\Desktop\SFML32 - Space Wars\PhysicsFS\include

Quote
C:\Users\*\Desktop\SFML32 - Space Wars\PhysicsFS\lib

Quote
physfs.lib

9
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:37:05 pm »
Yes i did, however its not working.
I wonder.. is it really only one single lib? i have a normal one and a static one.

10
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:26:03 pm »
I know.. but for some reason it doesnt work. Let me write it down:

Quote
#include <PhysicsFS/physfs.h>

this is how i include it to my project.

Quote
PhysicsFS/lib/

the place of the lib files

Quote
PhysicsFS/include/PhysicsFS/

place of my headers

And the vs config is EXACTLY the same as the sfml one.

11
System / Re: Easy way to load files from zip
« on: February 08, 2018, 10:13:03 pm »
Thank you.

So Ive created physfs.lib and included it to my project.

And now:

Quote
PHYSFS_AddToSearchPath ("Game.zip", 1);

is not defined.  :(

12
System / Re: Easy way to load files from zip
« on: February 08, 2018, 09:04:56 pm »
By including all files to my project... which is ugly and noobish.
Id really like to make libs and include them the right way.

13
System / Re: Easy way to load files from zip
« on: February 08, 2018, 07:52:51 pm »
Its ok i got it working.. thanks!  :)

Althoug id love to know how to create the lib files..

14
System / Re: Easy way to load files from zip
« on: February 08, 2018, 07:32:38 pm »
You'll also need to get physfs library itself from somewhere else too (easiest is to build it yourself, since it doesn't provide prebuilt packages for a while now).

And this is the point where im clueless again.
I downloaded CMake but i have no idea how to build these libraries.

Is there any tutorial how to build physicsfs?

15
System / Re: Easy way to load files from zip
« on: February 08, 2018, 03:55:38 pm »
Sorry for late respond and thank you very much for your help. This is awesome. So easy.

But I have a problem. I cant find this file:

Quote
#include "PhysFsStream.hpp"

Pages: [1] 2 3 4
anything