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?
1. update
2. collision
3. draw
but where to put spawn enemies?
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.
tex.loadFromStream(wonderfullStream);
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 ();
It's add, not Add. Where did you take the uppercase name from?
identifier ""PHYSFS_AddToSearchPath"" is undefined
PHYSFS_init (0);
C:\Users\*\Desktop\SFML32 - Space Wars\PhysicsFS\include
C:\Users\*\Desktop\SFML32 - Space Wars\PhysicsFS\lib
physfs.lib
#include <PhysicsFS/physfs.h>
PhysicsFS/lib/
PhysicsFS/include/PhysicsFS/
PHYSFS_AddToSearchPath ("Game.zip", 1);
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).
#include "PhysFsStream.hpp"