Show Posts
|
|
Pages: 1 ... 6 7 [8]
|
|
141
|
Developer / Technical / Re: java ArrayLists of user defined classes, help
|
on: November 22, 2010, 01:36:39 AM
|
I'm trying to make an ArrayList of userdefined classes, but I keep getting errors. I even tried using vectors, but still, I get errors. Could some one point me in the right direction? Here is some of my code, am I missing something? Why won't this work? Vector<PathItems> myVector = new Vector(); PathItems p = new PathItems(5,5,5); myVector.add(p); // I get the an error twice here "<identifier> expected"
How do I add too this or can you not make a vector of objects from user-defined classes? I just made a similar to check syntax, it might be refrencing the copy of the object stored, on 0 of myVector. check PathItems for the identifier problem... beyond that I dont know my code was: public class GameplayState extends BasicGameState{ Player p1 = new Player(); Vector<Player> v = new Vector(); @Override public void init(GameContainer gc, StateBasedGame state) throws SlickException { v.add(p1); }
|
|
|
|
|
142
|
Developer / Business / Re: Motivation
|
on: November 21, 2010, 09:30:37 PM
|
but all you really want to do is make your game?
That kills team moral FYI, Teams arent there to make YOUR game, unless its partially their Idea, they don't really care too much. I learned that the hard way. The best way I can think of to have a team settle together? Let them have input into the general concept, Even if that means leaving the look of the main character up to your Artist, he will care about the project because the main character was his design.
|
|
|
|
|
143
|
Player / General / Re: Subwoofers
|
on: November 21, 2010, 09:19:01 PM
|
|
Subs are best for Movies or sound effects, Play a Shooting game or a Action movie and they make it more of an experience. but Music has to have the sub Set correctly.
|
|
|
|
|
145
|
Player / General / Re: Programing Music?
|
on: November 21, 2010, 09:14:10 PM
|
I can't listen to anything when programming.
It gets in the way.
Ive tried, I start getting Irritated in all the silence Maybe it'll help if you listen to chiptune music.  Chiptune all day err day. Deal with it. Hahaha! I can't listen to "real" music when programming without getting distracted, but sometimes I listen to video game music when programming. I have a 3 hour YouTube playlist just for programming music  I should Probably get a youtube list or just download Rips from some clasic games, The Sonic Soundtrack is Great! the Genesis games that is. interestingly enough that makes sense, because game music like that is suposed to be catchy, but not intrusive to the experience. I can only program to music.
What I'm listening to depends on what mood I'm in.
Thats what im sayin! I Must listen to something when I work. Last Week it was the soundtrack to Furry 3.
|
|
|
|
|
146
|
Player / General / Programing Music?
|
on: November 21, 2010, 07:52:17 PM
|
|
Just a curiosity question, What do you listen to when you write code, Personally I feel like things like Death Metal is distracting, but My friend feels that the Scream style vocals to be, Ambient. On the other hand I prefer to listen to my vast collection of 311 and Red Hot Chili Peppers, which he finds distracting because its extremely melodic, and thought catching.
noting that there is no right answer, what do you listen to? can you think of why you prefer that when you code then to other times? What kind of music would Annoy you?
|
|
|
|
|
147
|
Developer / Technical / Re: Fighting Game Logic Questions
|
on: November 21, 2010, 07:35:37 PM
|
Although boolean flags and enums work for simple state machines, they can quickly become hard to manage. Your approach is definitely the simplest and it works when you don't have many states to deal with, but you might want to look into more robust state machine implementations if things get out of hand.
As far as open source fighting games go there are a variety of open source MUGEN clones that might be worth investigating. Even if they don't necessarily produce very good fighters there are probably some good ideas to be had on how to build a fighting game engine. If you want to look at open source beat 'em ups Beats of Rage is an open source game that is actually pretty good.
I looked into Beats of rage before, Back when I was into the Dreamcast Mod Scene. Ill definitely look into MUGEN though, I figure a Fighting game and a beat-em up contain lots of similar elements, but fighting games have more advanced combo and block systems. I'd stick to boolean states for most of the cases, because multiple states can often be triggered at once and you need to have clear control over what happens. For example if an ennemy is hit AND in the air, or hit AND doing a move that makes him immune to interruption. You'd need to be able to trigger multiple conditions in your logic (without having to make a shit ton of enum fields for every possible combination).
this makes sense, but I feel like the enum still works for this, if the enemy is in the air, it cant be stunned or knocked down, but can be hit, and in the case of the un-interruptable move, this would be a enum state, even if the enemy has 3 moves that cant be interrupted all 3 moves call the same state. this being said Im still more comfortable with the boolean machine, I just understand how this could be beneficial.
|
|
|
|
|
148
|
Developer / Technical / Re: Fighting Game Logic Questions
|
on: November 20, 2010, 08:02:11 PM
|
|
WOW! Looks like I have to do a lot of reading hahaha, I plan on looking into all this this weekend, Im still in planing mostly because I need to make sure the game is pushing my skills, while not exploding out of my reach, Id really like to finish something. My Current Active Development project is a Side scrolling platformer, and even that is proving to be a Challenge. Jumping is more complicated then I thought....
I get what your saying with Enum though, need to read into it more but it makes sense, since states cant be overlaped, you cant be stunned and walking at the same time for example.
|
|
|
|
|
149
|
Developer / Technical / Re: Fighting Game Logic Questions
|
on: November 19, 2010, 01:41:25 AM
|
like public void onHit(){ isStuned = true; stunTimer = 0; }
public void update(){ if(stunTimer >= stunMaxTime){ isStuned = false; }
if(isStuned){ stunTimer++; }else{ if(isAgressive){ //Agressive Logic } if(isBackingOff){ //Back Off Logic } if(isWaiting){ //Wait Logic } } } Well then! I might be able to actually do this hahaha
|
|
|
|
|
150
|
Developer / Technical / Fighting Game Logic Questions
|
on: November 18, 2010, 08:02:51 PM
|
I am a Seasoned (and I use that lightly) Game Jack of All Trades, but Ive mostly been making WASD+Mouse Shooters and side-scrolling Shooters(Galaga-esk) So Finally I decide to move on and make a Fighting game, int the style of Golden Axe and Streets of rage, but I cant wrap my head around the game logic, like enemy states(Stun knock-down etc) and Enemy AI, as well as well as Making punches take time. Should I create a "Update" method and then create a bunch of "States" like boolean isStunned; boolean isKnockedDown; boolean isAgressive; boolean IsBackingOff; boolean IsWaiting;
public void update(){ if(!isStuned){ if(isAgressive){ //move or attack } } }
also is there any good open source Fighting games I can poke through? P.S. Hi Everybody! First Post here, Hope I can get my first released game done here!
|
|
|
|
|