Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML-Sidescroller: Version 0.08 released! (Now with HUD!)  (Read 15298 times)

0 Members and 2 Guests are viewing this topic.

maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
SFML-Sidescroller: Version 0.08 released! (Now with HUD!)
« on: October 11, 2012, 09:45:43 pm »
Hello!

Until now I have only made some terminal "games", but this game is my first step into real graphical games. This project started a long time ago, I think I've started through the Christmas holidays 2011/2012 and I kept adding new things, debugging old things, and removing obsolete ones. I've integrated Box2D for the physics simulation of the asteroids (a really great tool - It was a tough learning curve but it was absolutely worth it and SFML (as you may have expected ;) ) for the graphics, audio & the networking.

News
Please see the tumblr blog about the game to get news about recent development actions.

Programmers
The game is mainly coded by me, but Roland Ruckerbauer (alias ruabmbua) has helped me with some graphics and some scripts. He has coded some games before I was able to do graphical stuff, so he helped me with the game concept and gave many ideas from his projects to mine.

What's the point?
SFML Sidescroller is a sidescrolling-sci-fi-asteroid-space-shoot-them-up-game which throws you asteroids in your face and you have to defend your spaceship from the annoying damage those little bastards can deliver! Upload your scores and be the #1 of the list!

Controls
The controls are gonna be ingame soon. Here is a list until a tutorial is implemented in the game :)
Everywhere
F2 = Screenshot (Saves at Data/Screenshots) (stolen from Minecraft ;))
F3 = Show Debug Information (stolen from Minecraft too ;))
Ingame
[SPACE] or [Numpad0] = Shoot
[WASD] or [Arrow Keys] = Move
Double-Tap [WASD] or [Arrow Keys] = Quick move  (this is not finished, I will later add fuel to limit this kind of movement)
[SHIFT] + MOVE = faster move (this is not finished, I will later add fuel to limit this kind of movement)
[ESCAPE] = Pause the game
Game Over Screen
[ENTER] = upload your highscore
Powerups
They are gonna be in the tutorial when it is implemented in the game.
Laser Upgrades
They can be red, blue, green and magenta. They upgrade your laser to a better shooting rate and more bullets at the same time. If you take an upgrade from a different color, then your weapon level will be at the beginning again.
Repair
This repairs your ship to 100%.
Yellow Star
The yellow star boosts your highscore up 4 - 80 points.

Newest Dev-Screenshots
(The version indicator in the screenshots shows 0.07, but that is only for testing purposes - it is 0.08 ;) )
Gallery: http://imgur.com/a/PkL3a#0





Download
You can download the project from my homepage http://maximaximal.com(warning: it is mainly in German, the download links are the first heading after the big buttons - do not rage quit ;) ) and from the official site: http://www.srcttp.org/games/SFML-Sidescroller/download.php.
I am making prebuilt binaries for Windows and for Linux64. The game has an integrated update mechanism that detects whenever a new version is available :)
Of course it would be ok if you click on the direct links, but adf.ly is cooler ;)

Adfly: Download newest for Windows!
Adfly: Download newest for Linux64!

Direct: Download newest for Windows!
Direct: Download newest for Linux64!


Source Code
The source for this game is on gitorious (because github is not open source ;) ).
https://www.gitorious.org/sfml-sidescroller

Bugtracker
If you really want to help this game growing, then you could register at our bug tracker: http://bugs.srcttp.org.

Last words
I am really proud of this project, but it is still not finished. It would be awesome if you could rate this project and give me some requests for it. I am going to make a video for this game, but I still want to wait with that until I get some other critical jobs done (the HUD for example).
And please notice that I am from Austria (not Australia ;) ) so my native language is still German, so don't be too rude about my English skills :)
« Last Edit: November 12, 2012, 07:48:31 pm by maximaximal »
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: First Graphical Game: SFML-Sidescroller
« Reply #1 on: October 11, 2012, 11:32:25 pm »
I really like the game and it's quite fun to play! Well done! :)

Unfortunately you didn't say in your whole post here what the game is about, so here goes a quote from your website:
Quote
SFML Sidescroller is a sidescrolling-sci-fi-asteroid-space-shoot-them-up-game which throws you asteroids in your face and you have to defend your spaceship from the annoying damage those little bastards can deliver!

Since you want to hear some feedback here's a list. ;D
  • On my 22'' screen the space in the menu is quite unused (you see this also in the posted images), on the top a 'tiny' title and on the bottom a even tinier menu. Use the space! :D
  • In game it's kinda strange that I can fly out of the screen (I've got a 1600x900 resolution), so I actually don't see myself if I fly to the top or the bottom or the left. Maybe it's not a bug but a feature? ??? :P
  • For my eyes the bright white stars in the background are a bit too bright and it's hard to look at them for too long. Maybe you could set a less intense white?
  • When I first got to the highscore there was "aaaaaaaaa" in place where I later entered the name. I'm mean it works but it kinda is not such a nice 'solution'. You could for instance make a box around the field or have a semi-transparent text there, or....
  • With the newest Windows version the version is not submitted/entered into the highscore which leads to wrong formatting in game and to whole on the website ranking.
  • Once you entered the name for the highscore you can't view the highscore anymore in game, you really should make a menu option for this and show the highscore list after the entering again. (That's what people would expect I think).
  • The ship design/color doesn't really fit the style of the game, it's extremly small and the contrast with the background is too low (well maybe this is intended but it's hard to spot the ship sometimes...).
  • There should be some instructions for the game, because I've only noticed that one can shoot with [space] after my second game or so. ;D
    (Maybe this could be placed in the empty space in the menu!?)
  • It would also be nice to get an overview on all the goodies that exist and what their purpose is. (Certainly in game but maybe also on the website?)
  • It would also be helpful to have a damage bar somewhere. Although the damage can be seen on the ship itself, it's hard to tell at which stage the damage is.
  • I think there seems to be a bug with picking up items. Sometimes it just doesn't want to work and I can fly over it helpless. :(
  • Are you using a fixed time step for the physics/updating, because for me it sometimes seems like the ships movement behaves strange. Sometimes I get a hugh speed up for nothing. With a time-step tight directly to the last frametime such 'pumping'/accelerating-decelerating is quite possible and annoying. But it's not only that random spikes, it sometimes feels really strange that I suddenly move slower than the scrolling speed and sometimes I move faster although I essentially didn't do anything. So the question is how do you handle movement? Maybe you need to make a hard cut at a certain level of movement speed so that it's possible to actually keep the ship steady when doing nothing. Or is this all intended? ;)

I hope I could give you some helpful pointers right there and wish you all the best, maybe you'll see my name a few more times on the highscore list. :)

PS: You got a new subscriber to your blog. ;)
« Last Edit: October 11, 2012, 11:34:10 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: First Graphical Game: SFML-Sidescroller
« Reply #2 on: October 12, 2012, 03:29:32 pm »
I really like the game and it's quite fun to play! Well done! :)
Thank you!

I've edited my post already and added the controls & the different powerup types. A tutorial will be available ingame when I release the next version.

Quote
On my 22'' screen the space in the menu is quite unused (you see this also in the posted images), on the top a 'tiny' title and on the bottom a even tinier menu. Use the space! :D
Yeah, the menus are really small if you have a huge screen. The min resolution is 800x500 Pixels. I will look if I can make some conditional statements for bigger screens.
Quote
In game it's kinda strange that I can fly out of the screen (I've got a 1600x900 resolution), so I actually don't see myself if I fly to the top or the bottom or the left. Maybe it's not a bug but a feature? ??? :P
This is not a real bug, but also not a real feature. There is an invisible wall around the viewport which wont let the asteroids/bullets/the player pass through it. The wall is ~20 Pixels away from the window border, because It would not look good when the asteroids collide with your window. The spaceship is small enough to fit into that tiny space :)
Quote
For my eyes the bright white stars in the background are a bit too bright and it's hard to look at them for too long. Maybe you could set a less intense white?
The stars are configurable in the config file (I will later add a menu point for them). I think I will turn down the brightness of the star sprites a bit though.
Quote
When I first got to the highscore there was "aaaaaaaaa" in place where I later entered the name. I'm mean it works but it kinda is not such a nice 'solution'. You could for instance make a box around the field or have a semi-transparent text there, or....
This happens when you are pressing a direction key (for example A) and then die. The key event from pressing on that key is sent to the menu, and the aaaaaa is there :). Maybe I could fix this by adding a timer to the user input at the end of the game.
Quote
With the newest Windows version the version is not submitted/entered into the highscore which leads to wrong formatting in game and to whole on the website ranking.
This is really strange. I have looked into the list and found your name several times, but often without a version value. This happens only on a few PCs, and even then not every time. A PC in my shool had the same problem, but I don't know what causes it.
Quote
Once you entered the name for the highscore you can't view the highscore anymore in game, you really should make a menu option for this and show the highscore list after the entering again. (That's what people would expect I think).
That's a good point. I will add a timer which reloads the highscores from the server after a few seconds. You can view the highscores from the pause-menu (ESC while ingame), but that's not the obvious way of doing it...
Quote
The ship design/color doesn't really fit the style of the game, it's extremly small and the contrast with the background is too low (well maybe this is intended but it's hard to spot the ship sometimes...).
The ship is the exact same sprite since 3 months. I never did like it. The damage effects are gruesome xD
I hope I can draw a better one myself, or at least find a better image :)
Quote
There should be some instructions for the game, because I've only noticed that one can shoot with [space] after my second game or so. ;D
(Maybe this could be placed in the empty space in the menu!?)
I am going to add a ingame tutorial in version 0.06 :)
Quote
It would also be nice to get an overview on all the goodies that exist and what their purpose is. (Certainly in game but maybe also on the website?)
Ok, I will add a new point in the navigation of the website which explains all about the powerups & the keys.
Quote
It would also be helpful to have a damage bar somewhere. Although the damage can be seen on the ship itself, it's hard to tell at which stage the damage is.
I wanted to make a HUD for the current version, but I did not had time yet to code it. I hope it will make it into V0.06.
Quote
I think there seems to be a bug with picking up items. Sometimes it just doesn't want to work and I can fly over it helpless. :(
That should not happen. There was a bug which caused exactly this in version 0.04, but I thought I've fixed it already.... I will look into this again :)
Quote
Are you using a fixed time step for the physics/updating, because for me it sometimes seems like the ships movement behaves strange. Sometimes I get a hugh speed up for nothing. With a time-step tight directly to the last frametime such 'pumping'/accelerating-decelerating is quite possible and annoying. But it's not only that random spikes, it sometimes feels really strange that I suddenly move slower than the scrolling speed and sometimes I move faster although I essentially didn't do anything. So the question is how do you handle movement? Maybe you need to make a hard cut at a certain level of movement speed so that it's possible to actually keep the ship steady when doing nothing. Or is this all intended? ;)
I am using a seperate thread for the physics and a mutex to keep the whole physics thing thread-safe. If you press at a button, the code will say Box2D to apply a force on the player. Because there is a different framerate on different computers, this force is dependent on the time per frame. I've tested this system on the computers of my school (~25FPS instead of 60) and it works perfectly.
I think you suffered under an intended feature, the "double-tap move". If you doubletab a key, you will move quickly in that direction.
The problem here is, that the OS sends the key events very often, and so you get a speed boost when you did not want to have it. There is a config option available for this, but I am hopefully going to fix this very soon.

Puh, long post, but thanks for your points :)
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: First Graphical Game: SFML-Sidescroller
« Reply #3 on: November 04, 2012, 11:41:28 pm »
Update 0.07
This update is hot, because it contains explosion effects when you destroy asteroids, a new GUI, a built-in sound-config, a new, self developed gui, a new fancy icon, a new cool logo, and new awesome spaceship graphics!
If you can read German, then there is my german blog-post about this update: http://maximaximal.com/blog/?p=563
What's new?
  • New Game-Icon
  • New menu-system
  • New spaceship graphics
  • New update system (currently only for windows users, because I wasn't at my linux work machine back then and I've forgoten it quite often...)
  • 2 new Menu-Backgrounds (random at start-up)
  • New (hopefully perfectly working) asteroid spawning mechanics
  • A click on a button now has a sound-effect
  • New configuration-menu to configure the volume of the sounds and the music in-game. There will be more options soon...
What is not in this update?
  • I did not create a in-game tutorial yet - this is something very important, so I will try to implement this in a good way in the next update
  • A HUD/Status-bar system - I was too busy with the complete recode of the gui, so this is moved to a leter update
  • Multiplayer Mode ;)
Download
Download the game as usual - here are the links:

I hope you have fun with this update! Please share your thoughts and your discovered bugs with me, so I can make the game a better one :D
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #4 on: November 05, 2012, 06:54:53 pm »
Very much fun!  :)

Number #24 so far; I'm going for #1.

My only suggestion is to include something like a 'health-bar' since sometimes I'm not sure how good my ship is doing.

Keep the good work! 



maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #5 on: November 05, 2012, 07:27:00 pm »
Very much fun!  :)

Number #24 so far; I'm going for #1.

My only suggestion is to include something like a 'health-bar' since sometimes I'm not sure how good my ship is doing.

Keep the good work!
Thank you!
It is funny how bad I am in my own game xD - I'm #35 :)
I wanted to add a hud already, but I had to recode the comlete GUI, so this is going to be in the next version :)  (I've just started with the health bar)
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #6 on: November 06, 2012, 12:29:49 am »
#1  :D



cire

  • Full Member
  • ***
  • Posts: 138
    • View Profile
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #7 on: November 06, 2012, 03:01:05 am »
I've noticed if you edit the config.lua to modify backgroundStarsCount to anything other than -1, periodic crashes ensue (of the sort that require killing the program via the task manager.)  This was true of the last version as well, I just never got around to reporting it.

maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #8 on: November 07, 2012, 08:53:32 pm »
#1  :D
Oh my gosh, you've beaten all my folks xD - Did you cheat in some way or is the score completely legit?

I've noticed if you edit the config.lua to modify backgroundStarsCount to anything other than -1, periodic crashes ensue (of the sort that require killing the program via the task manager.)  This was true of the last version as well, I just never got around to reporting it.

Thank you! I had a dumb mistake in my config reader- it checked if the number was -1. If it was not -1, it would be given to the star-creator, which cannot generate a negative array :)
I fixed it and now the value is double checked by my star-manager too :) (if your crash happened after you changed the star-count to a different negative number - positive numbers without commas do work)

PS:
I've completed a health-bar-system, which shows the current fuel level too. Fuel is a new game-mechanic to prevent the overpowered shift-movement (Shift + WASD) to be possible all the time :D
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #9 on: November 08, 2012, 03:33:05 am »
I didn't cheat, but I 'broke' the game.  ;)

By the way how do you store your top-score data; with SQL in a website?



maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #10 on: November 08, 2012, 11:08:42 pm »
I didn't cheat, but I 'broke' the game.  ;)
It seems like double-checking the game mechanics after every critical change is not enough xD - How did you break the game? Did you find a way to avoid the asteroids automaticly?
By the way how do you store your top-score data; with SQL in a website?
Please don't laugh, but the scores are saved in a csv table on my update-server. You upload your score through a PHP script, which checks if your score is valid or not.
This check is obviously not enough, because 3 scores above you were hacked into the system  :o (Roland already deleted those scores), so I will have to think about an extra method to check if the uploaded score is valid  :-\
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #11 on: November 09, 2012, 01:11:56 am »
I don't laugh because I have no idea about any of those things.   :(

The 'break' was quiet simple: I positioned the ship in the top-right corner of the screen, while continuously shooting. The score goes up slowly but steadily.



maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #12 on: November 09, 2012, 11:45:51 pm »
The score server works with a very simple text file, which contains the date, the version, the name, and the score. PHP then reads it, formats it in the right way, and outputs it to the webpage-body. The client then only displays the string :)

I've fixed your exploit by the way :) - Now the asteroids are spawning in the corners too, so bugusing won't be that easy with the next version :) The only thing that is left uncleared is a better security mechanism for "browser hacking" ;)
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

kimci86

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #13 on: November 10, 2012, 03:00:13 pm »
The only thing that is left uncleared is a better security mechanism for "browser hacking" ;)

I tried it, and I did it without effort.
With a packet capture tool, I got the HTTP request to do and it worked with Firefox.

You should at least check that the user-agent is libsfml-network/2.x and the from field is user@sfml-dev.org. It would prevent "browser hacking" but not hacking with a http requester tool.

I also noticed that a negative time is accepted by the server.

maximaximal

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • maximaximal.com
    • Email
Re: SFML-Sidescroller: Version 0.07 released!
« Reply #14 on: November 10, 2012, 08:32:08 pm »
You wouldn't even need to capture the program with a network analyzer - you could just look into the source-code too ;)

Ok, negative time is dumb (i don't check this at the server) - I fixed it just now. The idea with the user agent is a good one - I will look into this as soon as I have more time :)
Personal Website (german :O) - http://maximaximal.com
Cooperative Website (German & English) - http://srcttp.org

 

anything