Projects and Development > Programmerin'


(1/2) > >>

I've been messing with this Clanlib game development library for C++, which makes it easier to actually make a game, instead of fooling around with underlying code for sounds and images and sprites all day.  So far I like it pretty well, and recommend it to anyone else with knowledge of C++ to give it a shot.

So while experimenting with its features, I kind of worked them into a little test app.  It cycles colors, draws a semi-transparent background, renders the play objects onto a secondary canvas and rotates it in the corner, etc.  Then I thought it was almost demo material enough to upload for folks to check out, so I added in a ball, collision detection, generated some sounds and such, and it ended up being a fun little diddy to mess with. 

Download Fypong v0.1


p.s.  I was getting an fps of around 600, so I'm curious to know what other folks get with it, to use as a reference of the performance of the code and the Clanlib library and all that.  I'd also be curious of any serious stuttering or gameplay problems, which could be attributed to things on different PCs.

For memories sake:

I get about 445 frames with vsync off, though the limiting factor seems to be Vista or my video card.

Also, my vid card properties were set to 'allow program to decide vsync' and vsync still kicked in so either it happens by default or something.

I'll post my screenshot I took earlier here so that folks can make sure theirs looks right:

And for comparison, here's what I'm getting:

I think you're getting that because something about your computer, video card, or the clanlib code, is causing the canvas object (which creates a second opengl context) to actually use the first one for rendering for some reason.  Either way I want to get to the bottom of it.

But I've disabled the canvas for this newest version anyway..!

Download Fypong v0.2

I'll probably change the name eventually since I have a game idea, but it's fine for now.  Basically I came to the conclusion that I wanted to do a combination of Pong and Space Invaders.  So I created a couple frames of an alien animation, figured out the collision detection of clanlib, and wrote in the confusing code to make it properly bounce off of them (for now). 

This version also has improved controls.  The arrow keys accelerate the paddle so that you can tap the buttons for finer control.  You can also use the mouse now!  Let me know of any issues and such iffin you try it out.  Mind you that nothing ever really happens in this; you just bounce it off of aliens, they turn red with each hit, and eventually they float off the bottom of the screen.


[0] Message Index

[#] Next page

Go to full version