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

Pages: [1] 2
1
SFML projects / Re: Red Plane (Rotes Flugzeug)
« on: October 20, 2015, 09:02:14 am »
I've tried it.
Fun but quite repetitive, you should add more content and challenge. And sound ;)
Good job for a first game!

ty for the feedback. you are totally right. i'm thinking of adding new types of enemies. changing the background every level would also be a nice easy change to make.

i will not be adding any sounds. i never play games with sounds. i find them mostly annoying :D

2
SFML projects / Re: Red Plane (Rotes Flugzeug)
« on: October 16, 2015, 08:17:26 pm »
Almost done with my first game. Gameplay and code still need some work, but added/fixed a bunch of stuff since last week.

For example:
  • better movement
  • build in radar
  • animated explosions
  • improved parallax scrolling


download the new version

3
SFML projects / Re:creation - a top down action rpg about undeads
« on: October 14, 2015, 09:33:31 pm »
Right now I'm working on refactoring and making the game more playable. There were some game breaking bugs which I was okay with. Not anymore. As I work toward playable build, I have to reduce the number of bugs. Hopefully, this won't take long as the game is mostly (sometimes surprisingly) stable.

Can't wait  8)

4
SFML projects / Re: Red Plane (Rotes Flugzeug) - new version
« on: October 10, 2015, 10:59:03 am »
ty, MORTAL, for the time you took to review my code. that's why i posted it. I'm still very new to programming in general so a lot to learn. I will tried to improve and follow the guidelines you gave. A lot of good points you made, for someone who just been learning C++ a year. I think you know your stuff  8)

5
SFML projects / Re: Red Plane (Rotes Flugzeug) - new version
« on: October 09, 2015, 06:00:26 pm »
I added some updates to the game. Now it is starting to feel/look like a real game.

UPDATES
  • revamped the movement (tho still not perfekt)
  • added a speedometer
  • fixed the bulletbug by writting a enemy and bullet class(much better now)
  • added levels(the game is still easymode, but its so i can find bugs)
  • rewrote a lot of my spaghetticode

Still TODO:
  • Gameradar
  • Add depth to the background
  • Make the game challenging
  • Work on the movement

link to download

6
ty.  a lot of great answers - more then i was hoping for.  8)

7
How is that simpler? Instead of maintaining one container, you have to keep two in sync and do everything twice. When a function needs access to multiple attributes of a bullet, you have to pass them as separate arguments instead of one combined object.
No it's not. I was a bit unclear - i just thought theoretically what other option do I have. Making 2 vectors would add a lot of code to my project - which does not make sense.
Object-oriented programming is good. Use a class for your object, and please don't inherit it from an SFML class...
so you don't recommend doing this ->
class Bullet : public sf::Drawable {}
How else can I make it drawable?
By the way:
(click to show/hide)
This code really hurts my eyes. You do not only have a memory leak, but seem to use new for no reason. Avoid manual memory management in your C++ code, it's not necessary -- see also my article about RAII.
Ty for the tip.I will look into your article.

edit: my create/move bullet function now looks like this:
(click to show/hide)

8
Create a bullet class and have a property orientation or similar.

I thought about it, but I wanted to find a simpler solution.
Another possibility is maybe to create 2 vectors(one with left direction another with right)?

New class it is. Ty :)

9
I have a vector, where i add bullets if a key is pressed. I would like to assign a direction (left/right) - or + upon creation. I can't figure it out. I thought about creating another vector for the bullets that i want going left, but it seems not the smartest solution.  :-\
       
this is how a new bullet is been created. IS it possible to add something like (-1*)so later when i call move on bullets the negative ones will fly left?
             
       sf::Sprite *nshot = new sf::Sprite;
        nshot->setPosition(player.getPosition());
        nshot->setTexture(shoot);
        bullets.push_back(*nshot);
 

this is how i move them atm. (direction_left is true when leftkey is pressed), this is no good, because when i press right they change their direction.
 for (auto i = bullets.begin(); i != bullets.end(); i++)
    {
      //according to direction fly left or right
      if (direction_left)
       i->move(-1000.f * bulletSpeed.asSeconds(), 0);
      else
       i->move(1000.f * bulletSpeed.asSeconds(), 0);
    }

10
SFML projects / Re: Red Plane
« on: October 06, 2015, 08:48:41 am »
I understand what you are trying to do with the camera, but for that you don't need to move the plane and/or the background, you just apply an offset to your view depending of the plane's speed.

ty for the tips, AFS.
I will rewamp the movement. that was the first thing i wrote so it is lacking a bit  ;).
at least you understood what i was trying to do :D i wanted to first move the plane to left or right and then start normal movement.
(like in the starray video i linked).

edit: updated the movement. ty

11
SFML projects / Re: Red Plane
« on: October 05, 2015, 04:48:55 pm »
tyvm for your feedback, eXpl0it3r, it helps a lot!

I find the movement a bit strange. Like it's hard to make out why you stick to the left or right side. Also there's barely any "feel" for the speed, with some text that shows the speed it might be better.
The movement is inspired by Ataris Starray. Wanted it to be something like this here. The speed-o-meter is a good idea. I will definitely add it.

At the moment it's not really challenging, but maybe with some more levels this might change?
Lol. A friend I gave it to try said it's a bit hard for him. You are just too good  8)


Will post updates and a new version in couple of weeks.

12
SFML projects / Red Plane (Rotes Flugzeug)
« on: October 04, 2015, 04:02:53 pm »
Hi all!

BACKGROUND:
For the last month I have been learning SFML by developing my first game. I call it Rotes Flugzeug (Red Plane in English) after one of my childhood favorites. Another inspiration for Red Plane was Starray by Atari (from the '80s).

GAMELOGIC:
You - the plane - flies around in a circle (gamemap is a circle) and needs to destroy all the bombs that fall from the sky. You destroy enemies by shooting at them and blowing them up. You must do so before they hit the ground - if too many reach the ground you lose. Survive long enough and you will advance a level. To fly around use arrows(all directions) and to shoot press space.

INFO:
Screensize: 800x600
OS: Windows only
Size: 1,20MB (with artwork and sfml dlls)
Code: GitHub
Preview: Tiny video of gameplay

download Rotes Flugzeug(.zip)
The download contains the game.exe, artwork and SFML dll-s. Should be everything you need to run it on windows.



Future updates still TODO:
  • Make the game challenging
  • Make the background loop smooth

13
SFML projects / Re: Screenshot Thread
« on: September 20, 2015, 08:23:53 pm »
Working on a easy flying & shoot 'em up game. Fly in a loop left or right and blow up the bombs (not sure yet if they will be bombs) before they reach the ground.

This is my first SFML project and also my first game ever.
Anyways, I thought I'd give you a sneak-peak  ::)
I will probably post the game here if it is ready and turns out ok.



Still a lot to learn/discover of course, but so far I'm loving the SFML library and what one can do with it.

PS My inspiration is a classic Atari game called Starray.

14
SFML projects / Re:creation - a top down action rpg about undeads
« on: September 19, 2015, 08:51:18 pm »
This game looks amazing! (artwork, colors, layout. well everything is spot on tbh). Keep up the great work. I hope the release date will end some time soon ;)

Just wanted to cheer you on.

15
General / Re: Collision: Erasing two sprites from two different vectors
« on: September 19, 2015, 05:48:41 pm »
Yes and ty it helped a lot. It works as intended and also helped me correct another function 8)

Pages: [1] 2