Jump to content

  • Log In with Google      Sign In   
  • Create Account


mvsc

Member Since 12 Nov 2011
Offline Last Active May 02 2012 01:48 PM
-----

Topics I've Started

Thoughts about music, feeling, and in game situations

02 May 2012 - 01:26 PM

I play music and record music, generally not with video games in mind. One day I happened to play a particular track of mine while playing Turok, in the part where you take the giant platform elevator from the bottom of the underground base to the surface. And, it happened to seam to be an incredible match for the situation in the game, and the feeling which the music expresses.

This part of the game, has two main aspects which made it work. First, it is difficult. Your essentially forced into what would be most likely a suicide situation, in which there is nowhere to hide, and where you will face, and be openly exposed to many enemies shooting at you and throwing grenades. And second, your on a moving elevator. You cannot stop. The action is coming at you, and your all in.

The feeling that the song expresses, seamed to embody this situation, while evoking a feeling of fearlessness and a sort of calmness at the same time. It brings to life that moment in which you realize the full reality of a deadly situation, come to terms with death, lost your fear, gain a calmness. A moment in which you unlock powers and strengths inside of you which you didn't know you had, and with all of your hear and soul and strength, set out to do that which is nearly impossible, nearly certain death, but your zen like state of mind makes the impossible possible, makes you see your path to survival with unprecedented clarity, and allows you to overcome all odds and come out victorious.

I just thought I would share my thoughts. The song isn't really necessarily that great. I would post it, but I might use it in the future in a game and don't want to spoil it.

Anyone have experience with clutter for 2d game?

02 April 2012 - 02:18 PM

I'm thinking about using clutter to try and make a 2d spaceship. Do you think clutter will work good for this?

boost filesystem iterate

20 November 2011 - 04:35 AM

copy(directory_iterator(ProjectDirectoryMain), directory_iterator(), ostream_iterator<directory_entry>(cout, "/n"));

This snippet goes through a given directory, and prints out the path and name of each file it holds. What I want to do instead of print, is to store in a variable, and also keep count.

!SDL_GetMouseState only works for button 1

13 November 2011 - 12:04 AM

Hi. I'm a beginner learning SDL, and I noticed something which is bugging me.

alGetSourcei(source[3], AL_SOURCE_STATE, &val3);

if (SDL_GetMouseState(&x,&y)&SDL_BUTTON(1) && x<10 && y<10 && val3!=AL_PLAYING) alSourcePlay(source[3]);  

else if (!SDL_GetMouseState(&x,&y)&SDL_BUTTON(1) && val3==AL_PLAYING){ alSourcePause(source[3]);}
This plays a sound file if the mouse cursor is in the upper left corner of the window and you press mouse button 1, and if you let off mouse button 1, the source is paused.

But when I use button 2, or 3 instead of 1, in the exact same code, the button press is registered, but the button release isn't, and the source will play, but not pause on release. Whats up with this?

PARTNERS