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

Author Topic: Massacre. A poor 2D Space Shooter.  (Read 5071 times)

0 Members and 1 Guest are viewing this topic.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Massacre. A poor 2D Space Shooter.
« on: September 27, 2017, 01:01:43 am »
Hello, Ladies and Guys of SFML

Here I give my poor 2D Space Shooter. It's still in development, but works fine. Perhaps those who play it, if they collect available power ups, will guess why I called it Massacre.

Criticism, advice on how to improve the game, questions, and whatever you want to say, will be appreciated. Anyway, please note that some not very important features (such as the options screen) is not finished yet.

The app can be downloaded from here:
https://www.dropbox.com/s/a7wknigdjzg53to/SpaceShips.rar?dl=0

Story of this poor game:
Some time ago, about an year or a bit less, I don't remember exactly, a member of the forums asked for help about how to shoot projectiles from a ship, maybe he/she had been planning some game like Massacre, I don't know. So I hurried to make a little example and post it, but that member never replied so I never knew if my reply was helpful for him/her. The matter is that, from that minimal example (that can be downloaded from here https://www.dropbox.com/s/8qv6s5r6kk826sh/SpaceShips%20before.rar?dl=0) I got enthusiastic and went ahead completing the game




« Last Edit: September 29, 2017, 05:48:51 pm by Tigre Pablito »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #1 on: September 27, 2017, 12:35:43 pm »
The game crashes for me up on start. No error message provided. :-\
Maybe some issue with the provided DLLs?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Massacre. A poor 2D Space Shooter.
« Reply #2 on: September 27, 2017, 04:25:50 pm »
Make sure you're not building as AnyCPU when native libraries are involved.

Otherwise, x64 machines will try to run the executable as x64, and when it can't find x64 bit dlls - boom.

I used corflags to force it to run as x86.

I like the 3D buildings! Pretty fun!

One issue - when in the main or settings menus, stuff from the previous "scene" / "menu" / etc was being displayed in another frame or something. I wasn't able to get a screenshot - the screenshot looked fine.
For instance, the intro SFML logo was partially visible while sitting at the main menu.

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #3 on: September 28, 2017, 10:25:59 pm »
Perhaps add some screenshots or a gameplay video?

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #4 on: September 29, 2017, 12:44:20 am »
Hi eXpl0it3r, dabbertorres, and Tank
thanks you all for replying

eXpl0it3r: were you able to run the game? maybe your system is 64 bit, and you just would have to change the DLLs?

dabbertorres: 1) Thanks! 2) The issue you describe doesn't occur for me ... anyway I'll try to find if there's some way that could make that happen in other PC. I didn't understand about the screenshot. You were able to take it?

Tank: Could you please explain me how to use OBS Studio (for the video)? I downloaded it little time ago, in order to make a video of my poor Super Mario game, but never succeded using it. Here are some screenshots

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #5 on: September 29, 2017, 12:50:28 am »
@Tigre Pablito
It's all explained here: https://obsproject.com/wiki/OBS-Studio-Overview

The screenshots look cute. :-)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #6 on: September 29, 2017, 12:51:59 am »
No, I could not. As dabbertorres said, you have probably compiled it as Any CPU. If you want it to distribute as x86, then make sure your .NET project is also compiled as x86.

OBS Studio has a tutorial mode and many, many guides online. Just check one out, it will probably be more useful than some vague description on the forum.

You can embed the images with the [img]URL[/img] tag in your first post. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #7 on: October 02, 2017, 03:19:22 am »
Hi all

Tank:
1) I tried very much but wasn't able to make a video. The OBS Studio is very slow, as if it was buggy, its version is 19.0.2. I'll have to take the time, and see what happens with my OBS Studio copy.
2) Thanks! You ran the app?

eXpl0it3r:
1) I couldn't find the "Any CPU" option to change it, maybe because my project is console?
2) Also I tried to embed the images and they didn't appear. Perhaps the dropbox links are not correct, that is, I don't know what URL should be in [img] URL [img].

I made some improvements on the intro screen settings and in a few graphics.

Here you can download the project folder
https://www.dropbox.com/s/508ygzmjinl8wwy/SpaceShipsFolder.rar?dl=0

Sorry I´m not very slick for some issues. When I can make the video I will upload it to this same post.

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Massacre. A poor 2D Space Shooter.
« Reply #8 on: October 02, 2017, 09:50:55 am »
Console project doesn't make a difference. What version of VS are you using? Raw picture guide for VS 15/17:








Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #9 on: October 02, 2017, 03:44:31 pm »
Hi dabbertorres, and everyone

It wasn't so easy (for me), but here we have,

the project folder (source and all)
https://www.dropbox.com/s/508ygzmjinl8wwy/SpaceShipsFolder.rar?dl=0

and just the game
https://www.dropbox.com/s/a7wknigdjzg53to/SpaceShips.rar?dl=0

both with the compile option x86

You can choose the level and other options in the Options menu at intro screen.

I hope now you can play the game, and throw critique, advice, and tips to get it better. My intention is to add more enemies and levels.

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: Massacre. A poor 2D Space Shooter.
« Reply #10 on: October 03, 2017, 01:18:29 am »
Very nice! Congrats!

No issues launching now.

Also, I took a picture of my screen with my phone so you can see what I was talking about earlier:
(click to show/hide)
I think it's something to do with your state machine - still drawing other states or something. Not sure though. It's just fine in-game, it's only in menus that the problem is visible.

Tigre Pablito

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • Email
Re: Massacre. A poor 2D Space Shooter.
« Reply #11 on: October 20, 2017, 09:01:45 pm »
Hi dabbertorres,

Very nice! Congrats!

No issues launching now.

Also, I took a picture of my screen with my phone so you can see what I was talking about earlier:
(click to show/hide)
I think it's something to do with your state machine - still drawing other states or something. Not sure though. It's just fine in-game, it's only in menus that the problem is visible.

Thanks!

I can't figure out why happens the issue you get, cos in my PC it doesn't. I reviewed the intro screens and state machine and can't imagine what's going on. Maybe your CPU is faster than mine and cos of that you can see the flashing and there's an error that my lower (2.3 GHz) CPU can't display. You are a C# programmer, if I don't remember wrong, maybe you can find the "bug" ...

Besides that I can say now the intro menu, option screen, and help are quite improved, and there are 5 levels, and a few new enemies and weapons

Links are the same

Ah, I found out that the reason why I couldn't make a video is that my CPU is old and weak (I was told in the OBS forum)
 

 

anything