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

Pages: 1 [2] 3
16
General / Line in box collision
« on: November 07, 2010, 10:28:33 pm »
oww, thank you, i will try! and not, i'm brazillian

17
General / Line in box collision
« on: November 07, 2010, 02:42:15 pm »
i have 15 years, i get a code in internet that works, but i wanted make my code

18
General / Line in box collision
« on: November 07, 2010, 04:32:46 am »
sorry, but i didn't understand what you spoke. can you give an example?

19
General / Line in box collision
« on: November 06, 2010, 07:17:18 pm »
Hey guys!? how can i check if have a intersect/collision of a line in a rectangle?




i made this code, but is very slow for a lot of lines and rectangles:

Code: [Select]
bool line_collision(int x1, int y1,int x2,int y2,const gameobj& other,int precise) {
    int x,y,angle,dist;
    angle = point_direction(x1,y1,x2,y2);
    dist = point_distance(x1,y1,x2,y2);
    for(int i = 0 ; i < dist ; i+=precise) {
        x = (x1-cos(angle*(DEG))*i);
        y = (y1-sin(angle*(DEG))*i);
        if (x >= other.x + other.rect.Left and x <= other.x + other.rect.Right) {
            if (y >= other.y + other.rect.Top and y <= other.y + other.rect.Bottom) {
                return 1;
            }
        }
    }
    return 0;
}


i think that have others ways to do this, can you help me?

20
Audio / Error in sfml::audio?
« on: November 05, 2010, 09:58:13 pm »
hey guys, i think that have an error in the sfml::audio. when i load big files or make a file transport by http the game crash, but if I change the audio buffer size the problem don't happens but in some computers the error continue happens.

21
Network / download image from html
« on: October 31, 2010, 07:23:47 pm »
yes, sorry, I was saying HTTP. I know that is possible, but i wanted make with the sf::Http. In my game i need to download an image with the news, now I'm using a free FTP server, but i don't know if ftp support mores clients than one.

22
Network / download image from html
« on: October 31, 2010, 01:51:35 am »
is possible?

23
C / problen dll
« on: October 28, 2010, 02:40:01 am »
i am making a DLL with some function to facility: point_direction, distance, format_text.. a error apear when i compile the project that i use to test the dll, not the dll project. i think that is because i don't know what i need to put for link, with sfml we put : -lsfml-graphics... but with my dll i dont know what need

24
Audio / probem in load sounds
« on: October 16, 2010, 07:57:04 pm »
i am thinking that my game have a problem with the sounds, if a run the game at first time it run ok, but when i close and run again when the game load the sounds it crash, the computer not only the game but for play the game again i need to restart the computer

*it have a lot of sounds buffer

edit:

i discovered that the problem is in the musics, i have one to the menu and another to the game, but in computers with low hardware this system crash

25
Audio / A lot of sf::Sounds
« on: October 16, 2010, 07:18:38 pm »
i'm thinking in put in a variable the times i need to play the sound and in the end of the frame  i use some 10 sf::Sounds and play it the times that is in the list

26
Audio / A lot of sf::Sounds
« on: October 16, 2010, 03:47:26 am »
hey guys! in my top down view game, for the enemys's shoot sound i have one "main" sf::SoundBuffer and each enemy have sf::Sound but some times when the enemy shoot his soud dont play

27
Window / get open filename
« on: June 08, 2010, 11:28:06 pm »
but, if I include the window API?

28
Window / get open filename
« on: June 08, 2010, 11:17:15 pm »
how I make the "get open/save filename" of the window API with a window of SFML?

29
SFML projects / Pro Shoot Strike
« on: February 23, 2010, 05:57:15 pm »
1 - I will remake the collision for put out the bugs.

2 - Yes, has this bug, but in other computers, in my not =/, Why I have a very goo computer!? oO

3 - No, I deactivated the songs for now, the bug is bad, some times when load or play the songs the game crash

4 - Still can not be recharged. I don't know how to make to the explosions not exceed the walls =/

sorry my english ^^

30
SFML projects / Pro Shoot Strike
« on: February 21, 2010, 05:47:48 am »
Hey guys! I'm here to show you the beta of my first and new game in C++ using SFML, the Pro Shoot Striker

This is a very nice TDS game, isn't completed, I need to complet the online mode, same bugs and a big bug in the songs oO

The game has a banckmarck mode for test the computer ( this mode ins't translated to english )

The carrer mode isn't completed, if you will play, click in Choose Map, not in New Game.

The choose map have a auto map load that load all maps in the directory maps, automatic, I should to make maps and you download and past to maps directory and the game load automatic.

Controls:

Move the player: W,A,S,D
Move the player to mouse position: space
Shoot: Left mouse button
Bomb: Right mouse button, has a force bar

Screens:







Download:

http://www.4shared.com/account/file/226422471/aff16da1/final.html

Thank you for all! and sorry my english, I'm brazilian. Bye!

Pages: 1 [2] 3
anything