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

Author Topic: SHMUPEH (Game)  (Read 6501 times)

0 Members and 3 Guests are viewing this topic.

t0rento

  • Newbie
  • *
  • Posts: 11
    • View Profile
SHMUPEH (Game)
« on: March 15, 2009, 01:39:47 am »
This is my Australia Year 12 project for my Software Development course, the requirements where just that it had to compile and use an array but I felt like making something remotely fun

The game is called SHMUPEH. It's a simple bullet-dodging enemy shooting game.

Most of the controls are explained when you load the game, except that F5 is used to take a screenshot.

I am using SFML primarily for rendering everything, the game as of now contains no networking, audio or use of any of the other libraries SFML provides. (I would probably be using networking and audio if I wasn't on a time limit to finish the project)

Note:
This code has gone through a lot of revisions and I can't say I'm proud of it. Like any programmer who works on a project for a long time they start to see so many flaws in it that they just want to start again. This project has been remade at least 4 times due to this and I find that if I keep remaking it it never gets done.

As such I cannot say I am happy with this code, however I hope the end result is at least a bit enjoyable.

Screenshots:





Download: http://www.electronicfiles.net/files/11823/Programs/SHMUPEH.rar
Source Code: http://www.electronicfiles.net/files/11823/Programs/SHMUPEH_SOURCE.rar
[Note] The download includes the source code.

Enjoy.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SHMUPEH (Game)
« Reply #1 on: March 15, 2009, 04:10:58 am »
Code: [Select]
_strdate( dateStr);
_strtime( timeStr );

Dunno those functions, and can't build your program only because of those two (everything else is compiles fine).

Looks to be Windows only..
Want to play movies in your SFML application? Check out sfeMovie!

t0rento

  • Newbie
  • *
  • Posts: 11
    • View Profile
SHMUPEH (Game)
« Reply #2 on: March 15, 2009, 06:06:28 am »
Quote from: "Ceylo"
Code: [Select]
_strdate( dateStr);
_strtime( timeStr );

Dunno those functions, and can't build your program only because of those two (everything else is compiles fine).

Looks to be Windows only..
That was a quick screenshot taking hack, if you comment out the surrounding if it should compile fine for both OS's. (Untested though)

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SHMUPEH (Game)
« Reply #3 on: March 15, 2009, 04:18:37 pm »
I got it to compile, but now the program closes just after launching, and nothing in log.txt.
Want to play movies in your SFML application? Check out sfeMovie!

t0rento

  • Newbie
  • *
  • Posts: 11
    • View Profile
SHMUPEH (Game)
« Reply #4 on: March 15, 2009, 09:29:01 pm »
Odd, the menu doesn't raise any errors so you may want to add some in ("#include "Logger.h" and use Logger::log("Message", LOGTYPE_ERROR) )

Hard to tell what is causing it with the current information

Edit:
Did you make sure to include all graphical assets and whatnot in the relevant path, it could be to do with that. Though if an asset didn't load an error would be logged Hmm...

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SHMUPEH (Game)
« Reply #5 on: March 15, 2009, 10:21:15 pm »
I put the executable next to the .exe you gave. I'll have a look a bit later at what could cause this.
Want to play movies in your SFML application? Check out sfeMovie!