Ok, let's do some shit!
I decided it might be better to make a new class for level 2, keep everything separate. I have no idea if that is the best approach to make, but at least if my attempt is a terrible failure most of the code will be in this class. What I really need is some way to tell the game to use this new class and stop relying on the old game1.cs that was my main class. That sounds sorta hard to do, I might just put a lot of if statements around everything in game1.cs that tells it to do what it normally does if the boss has not yet died and when it does die to stop doing all the stuff there and to call this new class a lot. That might work though I worry it might slow the game down a lot.
Part of me is considering if now isn't a good time to look for another tutorial, preferably one that shows how to do a multi-leveled game. That's a downside to writing these blogs at night, besides being more likely to skip it if I put it off too long I can't just IM Chris or something and ask the best way to do this. I have learned a lot from this, more than I expected. The game is actually much more polished than it was when I just finished the original tutorial.
I still would like to come back to this, but I think I am gonna first ask Chris if he knows an easy way to add a new level to a game like this, and then depending on what he says explore a tutorial for another game to further my learning.
One Step At A Time
Friday, November 25, 2011
Slacking 2
Yeah yeah. I know I've been slacking again, holidays and Thanksgiving stuff has not been helping with that. I will do an update tomorrow, Guinea's honor.
Sunday, November 20, 2011
Taking it to the next level
Ok, here it is, next level, level 2. A lot of what is in place can be used. Just need to use the trigger when the boss dies to change stuff. I probably should change the background, every level being in the same area would be kinda dumb though I will never be able to make a background that looks 1/10 as good as what they have now and finding one would probably be even harder than finding the sprites for the new enemies. I suppose for now I could just use something as a place holder and spend a future update or two fixing that.
So I need some kind of scrolling background, reset the player's health to 100 (should be easy), won't reset their lives though eventually I should find a way to give them extra lives here and there. Need either new enemies, new attack patterns, new enemy attacks, or a combination of that. The easiest way to do a new enemy projectile would be to just color it differently and have it do more damage and I might do that. If there were other easy to add effects to it when you put the code in the draw method that would also be nice.
Gotta have something to set each level apart. A background is a nice visual way to do that, but you still need something on the gameplay side to mix it up. Probably will want a new enemy or two. I suppose for all this I just need the code in blocks that only run if a given trigger is activated? I foresee a lot of difficulties and questions, but if I can figure out how to make one level, making more should be easier.
I really should look into that XNA topic on LL though I don't know where I would start. I keep forgetting they have it.
I suppose for now I will go and look for a place holder for a scrolling background. I did find what might be a somewhat promising cave background, I think it was specifically made for a game. I couldn't use it in the final product, but it would be rather distinct from the first one in the clouds. Art style is slightly more... "sketchy" I suppose? Though neither background would be used if it became a finished game probably since I have no idea if they're free to use.
I also found something I can probably use as a projectile as well (originally a beam type attack from one of the Kirby games?) so that is good.
I know I didn't do much code wise here, but thinking some things through and gathering some sprites to use in the next level was very useful for me.
So I need some kind of scrolling background, reset the player's health to 100 (should be easy), won't reset their lives though eventually I should find a way to give them extra lives here and there. Need either new enemies, new attack patterns, new enemy attacks, or a combination of that. The easiest way to do a new enemy projectile would be to just color it differently and have it do more damage and I might do that. If there were other easy to add effects to it when you put the code in the draw method that would also be nice.
Gotta have something to set each level apart. A background is a nice visual way to do that, but you still need something on the gameplay side to mix it up. Probably will want a new enemy or two. I suppose for all this I just need the code in blocks that only run if a given trigger is activated? I foresee a lot of difficulties and questions, but if I can figure out how to make one level, making more should be easier.
I really should look into that XNA topic on LL though I don't know where I would start. I keep forgetting they have it.
I suppose for now I will go and look for a place holder for a scrolling background. I did find what might be a somewhat promising cave background, I think it was specifically made for a game. I couldn't use it in the final product, but it would be rather distinct from the first one in the clouds. Art style is slightly more... "sketchy" I suppose? Though neither background would be used if it became a finished game probably since I have no idea if they're free to use.
I also found something I can probably use as a projectile as well (originally a beam type attack from one of the Kirby games?) so that is good.
I know I didn't do much code wise here, but thinking some things through and gathering some sprites to use in the next level was very useful for me.
Slacking
I know I've been kinda slacking off on doing this and I don't really have any great excuses. All the little things I can do are pretty much done and moving forward I need to work on another level.
In all honestly when I do these updates I only spend an hour or two on them (thus one step at a time) but the next step is gonna be a big one so I'll probably need to spend a little more time on it. Anyways, I'm gonna do one tomorrow, even if I don't get around to it til like 4am and force myself to stay up til dawn to do an update.
In all honestly when I do these updates I only spend an hour or two on them (thus one step at a time) but the next step is gonna be a big one so I'll probably need to spend a little more time on it. Anyways, I'm gonna do one tomorrow, even if I don't get around to it til like 4am and force myself to stay up til dawn to do an update.
Wednesday, November 16, 2011
The Power of Sound
Today I decided I was gonna focus on finding a decent place to get sound effects. I might succeed, I might not. I'll probably fall somewhere inbetween, finding a few middling sites with some sound effects but not a ton of them. I'll list them as I find them.
http://www.pacdv.com/sounds/
Has a number of sound effects, I think I looked at their "Interfaces" section before when I was looking for something. I don't think it is for games specifically but some of the stuff there can be used. They have about ten categories of sound effects, seemingly all in mp3 or wav format. "Ambiance" "Domestic" "Interfaces" "Machines" "Mechanical" "Voices" "Transportation" "People" "Music" and "Miscellaneous". There are a decent number of sound effects under each category. Some of the voices are a little corny though.
http://www.therecordist.com/video-game-audio/game-audio-samples
Has a smaller number of free sound effects than the above site, but they were made specifically for a game the guy worked on. He mentions several times they are not for commercial use though, so if you want to sell your game these wouldn't be the best choice (someone stealing something on the internet? NO WAY). I kinda like some of the more sci-fi ones, I could use them for the Shooter game I've been working on. All seem to be mp3s. Dude also has in depth sound effects for stuff like fire, woods, etc. but he sells them (I am not paying $125 to have every conceivable fire sound effect).
http://charas-project.net/resources.php?wa=0&lang=en&area=17&howmany=10&fsearch=
Charas has a ton of midis (the site is designed for RPG maker games and stuff). They aren't organized very well, the latest being on top. There is a search engine within the site for it, so if you want a few possible sound effects for a broad concept this might work. I don't know how well midis work with Visual Studios. Few sound effects here, much more likely to find background music for a town or something. I provided the link to the midis directly because the main page hides the link to their complete resources fairly well.
http://www.digitpress.com/dpsoundz/soundfx.htm
Has categories for sound effects and music ripped from various old school games (Like Atari and NES era). I assume most of it is copyrighted, but you have wavs for sound effects and mp3s for the longer themes and songs. Separated by the game it is from, not by what kind of sound effect it is. Unless you have a specific sound effect from an old game, this might not be your first choice.
http://soundtrack.imphenzia.com/sound-effects/
Sound effects for games and they don't seem to be copyrighted since you have to pay for some of them. A decent number are free however and there are 13 or 14 pages of sound effects so even just grabbing free stuff you should be able to get some stuff you can use. You can get them in wav, mp3, or "ogg" which I am not familiar with. Actually it looks like most of the quick sound effects are free and they charge a buck or two for the longer songs or background themes. You can search through it to narrow your search.
http://www.grsites.com/archive/sounds/
This appears to be a very large collection of sound effects. They claim to have 1,980. Many of the categories seem more day to day stuff, not something that would be particularly great for Shooter or a fantasy game, but I'm sure there is some stuff that would be useful based on the sheer amount of stuff they have. And hey, if you ever made a game in contemporary times this would be perfect. The guy claims they're not copyrighted or anything and free to use. You can get them as wavs or mp3s.
http://www.pacdv.com/sounds/
Has a number of sound effects, I think I looked at their "Interfaces" section before when I was looking for something. I don't think it is for games specifically but some of the stuff there can be used. They have about ten categories of sound effects, seemingly all in mp3 or wav format. "Ambiance" "Domestic" "Interfaces" "Machines" "Mechanical" "Voices" "Transportation" "People" "Music" and "Miscellaneous". There are a decent number of sound effects under each category. Some of the voices are a little corny though.
http://www.therecordist.com/video-game-audio/game-audio-samples
Has a smaller number of free sound effects than the above site, but they were made specifically for a game the guy worked on. He mentions several times they are not for commercial use though, so if you want to sell your game these wouldn't be the best choice (someone stealing something on the internet? NO WAY). I kinda like some of the more sci-fi ones, I could use them for the Shooter game I've been working on. All seem to be mp3s. Dude also has in depth sound effects for stuff like fire, woods, etc. but he sells them (I am not paying $125 to have every conceivable fire sound effect).
http://charas-project.net/resources.php?wa=0&lang=en&area=17&howmany=10&fsearch=
Charas has a ton of midis (the site is designed for RPG maker games and stuff). They aren't organized very well, the latest being on top. There is a search engine within the site for it, so if you want a few possible sound effects for a broad concept this might work. I don't know how well midis work with Visual Studios. Few sound effects here, much more likely to find background music for a town or something. I provided the link to the midis directly because the main page hides the link to their complete resources fairly well.
http://www.digitpress.com/dpsoundz/soundfx.htm
Has categories for sound effects and music ripped from various old school games (Like Atari and NES era). I assume most of it is copyrighted, but you have wavs for sound effects and mp3s for the longer themes and songs. Separated by the game it is from, not by what kind of sound effect it is. Unless you have a specific sound effect from an old game, this might not be your first choice.
http://soundtrack.imphenzia.com/sound-effects/
Sound effects for games and they don't seem to be copyrighted since you have to pay for some of them. A decent number are free however and there are 13 or 14 pages of sound effects so even just grabbing free stuff you should be able to get some stuff you can use. You can get them in wav, mp3, or "ogg" which I am not familiar with. Actually it looks like most of the quick sound effects are free and they charge a buck or two for the longer songs or background themes. You can search through it to narrow your search.
http://www.grsites.com/archive/sounds/
This appears to be a very large collection of sound effects. They claim to have 1,980. Many of the categories seem more day to day stuff, not something that would be particularly great for Shooter or a fantasy game, but I'm sure there is some stuff that would be useful based on the sheer amount of stuff they have. And hey, if you ever made a game in contemporary times this would be perfect. The guy claims they're not copyrighted or anything and free to use. You can get them as wavs or mp3s.
Monday, November 14, 2011
I'd hit that
Today the goal is a simple one, but one that probably needs to be done. I want to change the sound made when the player's ship is hit by an enemy laser. Currently it is the exact same sound that is made by the enemies when they get hit. Honestly even that sound isn't the greatest, it was just the first decentish sound that worked. I had a better one earlier on, but for some reason when I tried to use it, it wouldn't work.
The problem here is I simply don't know where to go to find good sound effects. I mean, I can eventually find some place via google, but like a big place I can go for most of my sound effect needs would be nice. The actual coding part of this will be trivial, just upload the sound, initialize it and find where I was playing the sound when the player gets hit and replace it with the new sound.
I find a sound effect from Mappy I think will do in a pinch and go to use that.
I have a small scare when I realize I had deleted the folder my classes were in (thinking it was the classes I had tried to save from the original project a while back and not where the classes I was using were stored. Fortunately I had not emptied the recycle bin so I was ok, just restored it. I played it to make sure everything was ok and it worked fine.
I literally add two lines to declare and initialize it, and change one line in the enemy projectile colliding with the player segment and it works just fine!
If you guys know a place with some good sound effects I wouldn't mind going back and finding slightly better ones, the ones I have now work, but better ones wouldn't hurt.
The problem here is I simply don't know where to go to find good sound effects. I mean, I can eventually find some place via google, but like a big place I can go for most of my sound effect needs would be nice. The actual coding part of this will be trivial, just upload the sound, initialize it and find where I was playing the sound when the player gets hit and replace it with the new sound.
I find a sound effect from Mappy I think will do in a pinch and go to use that.
I have a small scare when I realize I had deleted the folder my classes were in (thinking it was the classes I had tried to save from the original project a while back and not where the classes I was using were stored. Fortunately I had not emptied the recycle bin so I was ok, just restored it. I played it to make sure everything was ok and it worked fine.
I literally add two lines to declare and initialize it, and change one line in the enemy projectile colliding with the player segment and it works just fine!
If you guys know a place with some good sound effects I wouldn't mind going back and finding slightly better ones, the ones I have now work, but better ones wouldn't hurt.
Friday, November 11, 2011
Moar lasers
Last time I mentioned all the stuff I could be doing. The only small thing for me to work on really is fiddling with the normal enemy's lasers. I plan to do it the same way I did the boss, with counters, but obviously having them fire less since there are more of them and generic enemies shouldn't pose as big a threat as the boss.
So I went and added a counter for both enemies and used the same code I did last time except it fires the laser at 50 instead of 25. This is just a random value and will have to be changed as I play test it a bit. I also set the boss spawn counter back to zero as I care about the normal enemies right now.
After implementing it I notice something odd. Sometimes the enemies seem to fire very fast over and over, but that might be in part because they're moving towards the player. I notice some enemies will fire 8 or 9 times before they reach the other side, some will fire none, and others seem to fire once or twice.
After playing with it, making the lasers fire less often the result I get is ok but not perfect. I did notice that I really need a different hit sound when the player is hit since the player is firing constantly and usually hitting stuff that you don't pick up the specific hit that represents when the player is hit. That will be my goal tomorrow probably. I noticed it when I fought the boss.
Short update today, doing what I did with the boss to the enemies generally gave me the result I want, probably better overall than what I had. I'm not even entirely sure how often I wanted the enemies to fire really. But yeah, not much to say about this one, pretty cut and dry.
So I went and added a counter for both enemies and used the same code I did last time except it fires the laser at 50 instead of 25. This is just a random value and will have to be changed as I play test it a bit. I also set the boss spawn counter back to zero as I care about the normal enemies right now.
After implementing it I notice something odd. Sometimes the enemies seem to fire very fast over and over, but that might be in part because they're moving towards the player. I notice some enemies will fire 8 or 9 times before they reach the other side, some will fire none, and others seem to fire once or twice.
After playing with it, making the lasers fire less often the result I get is ok but not perfect. I did notice that I really need a different hit sound when the player is hit since the player is firing constantly and usually hitting stuff that you don't pick up the specific hit that represents when the player is hit. That will be my goal tomorrow probably. I noticed it when I fought the boss.
Short update today, doing what I did with the boss to the enemies generally gave me the result I want, probably better overall than what I had. I'm not even entirely sure how often I wanted the enemies to fire really. But yeah, not much to say about this one, pretty cut and dry.
Subscribe to:
Posts (Atom)