| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> should be fine <1> gameflow.c is the main loop for my game. <0> particules heh <1> what? <0> is that supposed to be particles? <1> well, when you hit a rock, don;t you see some particules off? <1> or when the rock is destroyed <1> spaceship thrust flame is implemented with particules <0> "particule" is not a word. it's "particle" <1> really?
<0> well, not that i know of anyway <0> unless it's game specific <1> must be my french. :) <1> damn! lol <0> ahh, could be <1> indeed. in french it's particule <1> Gotta love the "replace in all files" feature of editors <1> So? looks motivating? <0> yeah <0> how much if anything in gameflow.c is actual allegro? <1> actually, not much. bad choice of source file for showing off allegro. <1> let me send another one <0> mkay <0> though i did want to see that one <0> i also noticed at some places you seem to expect more than 2 players and at others you dont. did you change your mind halfway through? <1> actually there isn;t much of allegro anywhere. allegro is simply an API for input, images, sounds, etc. <1> I may have thought of having 4 players at some points. but the reason is it's always better to have defines than constants. <1> it makes code easier to read. you know that MAX_NUM_OF_PLAYERS mean where as if you see a comparasion to the number 2 you may not ncessarely know why it uses the number 2 <0> no, i meant like is_other_player_alive() and get_player_id() ? MSG_PLAYER_2 : MSG_PLAYER_1 <1> sent you another source file <0> vs for (player = 0; player < num_of_players; ++player) <0> is_game_key_valid is a riot btw ;) <1> it's tempodary <1> what you mean anyway? <1> it's declared static, so the name is mangled beyound recognition <0> huh? <0> no, i know it's temporary. but that's still what makes it funny <1> you mean it's a riot cause it'd be easy to crack it? <1> oh <0> no, just for what the value is and how it's tested <1> yeah, it's temporary. :) <0> yeah structs! <0> there's no objects whatsoever in c is there <1> I love structs <1> no <0> they'd have made it much easier <0> dunno what it would have done for performance though <1> overhead
<1> constructors, destructors... <0> yeah but you're effectively emulating them in c as it is <1> MAny say it's better to use C++ in large scale games, but I find C a very suitable language <1> well, yes, to a point <1> the update_sounds() is called every game loop <1> and there are equivalent for rocks, particles, ufos, spaceship. etc <1> you probably saw from gameflow.c anyway <0> (beat_timer == beat_delay) <0> stuff like that.. doesn't allegro have other timers you could use to implement those delays? <1> It uses the main timer, which allegro provides th einternal, and which I have set to 100 per seconds <1> the beat changes all the time depending on the number of rocks. <0> does that change the delay? <1> since I have music, cause I didn't plan to have music at first, I have a beat to "Stress" the player <1> No, I manupulate the beat delay. <0> the beat is very nice <0> though i think something closer to a heart beat would be more effective <1> One drawback of allegro is it has many high level functions which can interfere with user's code <0> i think people react to those subconciously <1> well, I can always chage it. just a matter of changing the wave file <1> the allegro manual: http://www.talula.demon.co.uk/allegro/onlinedocs/en/allegro.html <0> yeah, i've got it up <1> By the way, my game writes a few files for debugging purpose. if thew game ever crashes, send me the files, please. <0> yeah i saw those <0> the snaps? <1> yes and there's a third one... <1> dump.txt <0> ahh, yeah <1> those are overwritten each time you run the game <0> mkay.. well my head hurts now :) i think it's time to start drinking and veg out to a movie <1> ok <0> thanks a LOT for letting test your game and pick your brain <1> thanks for testing my game and all the feedbacks <1> no problem <0> now i've got that itch <1> :) <0> i just know i'm going to want to make some game somehow <0> of course, i dont know when i'll ever get the time <1> I love doing that kind of proigramming <1> That games was meant as a learning experience. I kept adding and adding. <1> and lots of rewriting <0> if it's a learning experiene it's SUPPOSED to have a lot of rewriting :) <1> yeah, but I could have just gave up on that particular game and start anew <1> with my new knowledge <0> true
Return to
#perl or Go to some related
logs:
#allnitecafe #netcafe #chat-world #chat-world reasan married #india #chat-world #allnitecafe Please define INSTALL4J_JAVA_HOME to point to a suitable JVM. emmakya
|
|