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

Pages: [1] 2 3
1
SFML projects / Re: Asteroids! Asteroids clone game SFML 2.0
« on: August 18, 2012, 11:14:00 am »
Thanks for your quick reply! About window resolution, I have set it optimal to my computer(Mac Book Pro). I didn't really think about resolution in other computers :o. But I actually "maybe" know how to set optimal window resolution when program starts. I really need to make some changes before I release next version...

I tried that load path first, but for someone reason it didn't work and I needed to make full load path(User/desktop etc.). I need to read more SFML documentation and find out how put it universal.

2
SFML projects / Asteroids! Asteroids clone game SFML 2.0
« on: August 18, 2012, 09:18:16 am »
Hi, so I will now present my "latest" project. I have been working on this asteroids clone game very long. Mainly because I've not been motivated sometimes. First I made it in SFML 1.6, but then I re-coded it in SFML 2.0. Still the game isn't finished, I just wanted to show it off. I thought, that I could get some sort of motivation to finish the game, if I release it now.

Game is open-source, you can use code how ever you want.

Oh, right. How can you put universal load path in to your game? The only thing I need to load is font, but how can you make it to work for anyone?

Controls:

W - Move towards
AD - Rotate ship
S - Go backwards
Space - Shoot

V - to re-generate that white dot(It's going to be some sort of bonus thing)

Esc - To close game

Download here:
http://www.mediafire.com/?5usqq6zqfuxz9o3 - Please note that the game is Mac Os X version, but it has full source and font. Not sure if the app even works for you...

Screenshots:
http://imgur.com/a/uidgL/embed

3
Graphics / Re: Converting INT to STRING.
« on: May 19, 2012, 08:12:09 pm »
Hi, I used very similar score system in my Pong! - game. I'm not going to give you a hint, just the code.

Note: This is SFML 1.6 version code!
Code: [Select]

#include <sstream>

...

App.clear();

std::ostringstream oss;
oss << points;
sf::String ret;
ret.SetFont(Fontti);
ret.SetPosition(20.f, 10.f);
ret.SetSize(25);
ret.SetColor(sf::Color::White);
ret.SetText(oss.str());

....

App.draw(ret);

4
SFML projects / Re: Asteroids Clone - Thanks!
« on: May 08, 2012, 07:46:26 am »
Looks very good. I have also done an asteroids clone game. I never figured out how to actually "divide" those asteroids. How did you create asteroids, did you create a class for asteroid and used that class in vector?

5
Graphics / Re: Spawning bullets
« on: May 02, 2012, 05:49:08 pm »
I highly recommend to 1. Create a class for bullet. This class should draw/move etc. the bullet. 2. Create a vector what uses bullet class like
std::vector<Bullet> Bullets
I can give you the full code, but you should try to figure it out by yourself. I want to remember you about the fact that bullet shooting can done very many ways.
Sorry about my crap english ;D

6
SFML projects / Re: 2dCraft (Minecraft 2d port)
« on: April 29, 2012, 08:56:38 am »
If you need any help to install sfml 2.0 to mac, I'm glad to help you.

7
General / Re: Displaying a number with sf::string
« on: April 11, 2012, 03:10:53 pm »
This answer is "bit" late, but I still want tell you how I do it.
Code: [Select]
std::ostringstream oss;
oss << number;
NumberText.SetText(oss.str());
NumberText.SetColor(sf::Color(255,255,255));
NumberText.SetPosition(10.f, 10.f);

-

App.Draw(NumberText);

Works well in my Pong! game, so I assume that it should work.

8
SFML projects / Re: 2dCraft (Minecraft 2d port)
« on: April 03, 2012, 01:56:02 pm »
New update sounds pretty sweet! It's nice that you want continue this project :)

9
SFML projects / Re: 2dCraft (Minecraft 2d port)
« on: March 30, 2012, 04:23:38 pm »
I just tested this and well, it looks very good. Of course there are bugs etc. but it looks Minecraft. Map generator is actually pretty sweet, I even played around with it. I hope you understand my english enough :D

Tip: You should put how to use map generator and controls to this thread.

10
Graphics / Mouse rotation in top-down shooter
« on: March 15, 2012, 06:37:27 pm »
You're true about my laziness and I know I shouldn't be so lazy. And I know all those advices are true. Personally I hate installing different libraries, I think it's more harder than programming actually. BUT I'm gonna grow myself a spine and install SFML 2.

EDIT: Got SFML2 working :)

11
Graphics / Mouse rotation in top-down shooter
« on: March 15, 2012, 05:44:34 pm »
Argh, I didn't look that code sample too well. The window isn't moving so the window is still, no moving around(Isn't sf::view used for that?). Then I'm using SFML 1.6(Too retard to install without proper install guide). And by the way, do I the code sample when mouse is moved?
Code: [Select]
if(sf::Event::MouseMoved)
{ //Do the code sample }

12
Graphics / Mouse rotation in top-down shooter
« on: March 15, 2012, 05:24:31 pm »
Yeah, thats true. I'm just too lazy to do so, because if vector algebra is going to be learned in school, I won't try to learn it now. <- English would be a lot more practical :D

13
Graphics / Mouse rotation in top-down shooter
« on: March 15, 2012, 03:36:27 pm »
Okay, thank you. I'm not really good at maths(I'm in junior high school).

14
Graphics / Mouse rotation in top-down shooter
« on: March 15, 2012, 01:39:52 pm »
Hi, I'm currently trying to make a top-down shooter. I have done kinda a lot of stuff into it, but now I'm stuck at very annoying little problem. I need to make mouse rotation, again I have no idea how to do this. The idea is that the player would look at the cursor. I could rotate the player using cursor so you could use WASD to move around.

15
General / Sharing variable in different files
« on: February 07, 2012, 06:47:07 am »
Thank you! I need to check out how to do that, what you explained. :D

Pages: [1] 2 3