The concept is very simple: there are some pigs running randomly in the fence and you have to right click on the one with the bell. Of course if you success, you’ll get points and the bell will change pig!
You’ll be able to use items that will help you (or will make things harder) during your catch. You can get them by clicking on the red box when it has a question mark on it.
Rules:
Right Pig: 100 Points
Wrong Pig: -60 Points
Arrow up Item: Speeds up all pigs
Arrow down Itme: Speeds down all pigs
x2 Item: Doubles the points you get (but not the points you lose)
I uploaded a new 1.1 version of the game in which i did the following:
*Replaced the bell with a red ribbon which is easier to see.
*Slightly reduced the running speed of pigs.
*Apported few fixes to the code.
*Used instancing for repeated geometry on the ground, with a substantial game size reduction (From 7 MB to 4MB).
*Used py2exe instead of packpanda to pack the installer with a 60% size reduction. (Installer is now 13 MB)
I think this is exactly the kind of thing Panda3D needs. The engine is amazing and development is so fast, I sometimes don’t understand why new mini-games like yours don’t come out all the time. Good job. Thanks for sharing.
I agree with you, with panda3d you have incredibly fast development times but even so new projects pop up rarely here.
It took me about 2 weeks to make this game and considering that i had to do everything by myself i think it’s a very short time. I think it would have taken me months if i wanted to end up with the same results using an engine programmed in C++ or C#
By the way, i’m making some changes to the game and I’ll share the new version as soon as it’s ready.
i highly recommend you to add some lights (2 or 3 pointlights) around the scene to give the scene more volume. even without shadows, lights produce a nice effect, smoothing the visuals and making things more 3d. i’d recommend checking out this blender tutorial for a example setup:
funny game. but my pigs are proving einsteins theory to be wrong. they are very fast. may it be possible you didnt take framerate into account when moving the pigs?
Yeah, I’ve already fixed this “bug” for the next release using taskMgr.doMethodlater(0.02, etc.) instead of taskMgr.add. But multiplying with globalClock.getDt() is a more correct way?
I’ve already tried to play with lights on pigs but as I painted the volume with a vertex paint, I liked the “toony” effect I got and I decided to make no use of lights.
Yes, globalClock.getDt() is the right way.
Remember the basic physics formula: Δs = v * Δt
Δs is the distance travelled, v the velocity, and Δt can be accessed through globalClock.getDt().
Okay, here’s the final version of my game! You can find it on the project website as usual.
I’ve made some important changes to the game concept as well. Now pigs speed up as player’s score gets higher, and if you manage to get a good score, well… there are a couple of surprises waiting for you.
And of course, now pigs speed does not rely on FPS.