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

Pages: 1 ... 11 12 [13]
181
SFML projects / Bullet hell (Touhou) fangame
« on: April 05, 2010, 02:20:39 pm »
Quote from: "Spidyy"
Why don't you try to use already existing Touhou editor like Touhou Danmafuku? =p


Oh, I use Danmakufu a lot. I created 2 boss battles, and released them on Shrinemaiden.

However it is very limited.

What I am trying to create will be much more flexible than Danmakufu, I hope.

Here's a new video.

182
SFML projects / Bullet hell (Touhou) fangame
« on: April 05, 2010, 01:09:34 pm »
I've only been using SFML since a day and I've already started an ambitious project. It's a Touhou fangame. Touhou is a bullet hell game, a shoot'em up focused on dodging a lot of bullets. Here's a video of my progress for now.



Anyone interested in giving an hand?

I'm planning to make boss battles non-hardcoded, instead scripted in external .lua files that are loaded using LuaInterface.

Oh, the project is written in C#, not C++.

183
Graphics / 8-direction movement problem
« on: April 05, 2010, 12:57:16 pm »
Thanks! :D

184
Graphics / 8-direction movement problem
« on: April 05, 2010, 11:40:01 am »
I created a simple 8-dir movement for my game, however when moving in a diagonal direction the player goes faster than intended.

This is the code. How can I prevent it?

Quote

            switch (input)
            {
                case KeyCode.Left:
                    nextX = -1;
                    break;
                case KeyCode.Right:
                    nextX = 1;
                    break;
                case KeyCode.Up:
                    nextY = -1;
                    break;
                case KeyCode.Down:
                    nextY = 1;
                    break;
            }

            X = X + nextX * speed;
            Y = Y + nextY * speed;

            nextX = 0;
            nextY = 0;

185
Graphics / .Center and .Scale
« on: April 05, 2010, 11:37:43 am »
Quote from: "Laurent"
Center is in local coordinates, it is applied before all other transformations. This means that you don't have to change it when you apply a translation, rotation or scale.


Thanks, I understand now.

186
Graphics / .Center and .Scale
« on: April 04, 2010, 09:46:13 pm »
If I modify the .Scale of a Sprite, and then set the .Center to:
.Center = new Vector2(.Width / 2, .Height / 2);

...the center is not in the correct place. How do I prevent this?

187
SFML projects / Best way to create a tile-based game
« on: April 04, 2010, 08:33:36 pm »
And how should I make relationship between elements? For example, I want a crate to be pushed when a player moves into it.

I could have the code in the Player class (on move, check if there's a crate in the designed position, if yes move both the crate and the player), but it isn't the best solution.

188
SFML projects / Best way to create a tile-based game
« on: April 04, 2010, 06:22:47 pm »
Hello, I'm new to SFML and its forum, so if this is the wrong section sorry.

I want to create a tile-based game, similar to Sokoban, for example.

I'm using C# and SFML.NET to create it. What is the best object-oriented way to create it?

---

I was thinking to have a class called Entity:
Entity(int x, int y, int z, string type)

And a class called EntityManager that contains a List<Entity>.

Then, for example, to move the player, I search in EntityManager's list an Entity with the type "player", and once I find it, I change its x to x -1.

---

Is there an easier or better way to make a Sokoban clone?

Pages: 1 ... 11 12 [13]