Search found 8 matches

by cruisx
Thu Apr 03, 2008 8:24 am
Forum: PSP Development
Topic: Slide image from x, y -> x2, y2
Replies: 17
Views: 4984

Maybe noobs are fed of answers like "get lost!" and coders are sick of questions like "how can i compute the mean of three numbers?" proposal: can't admins put a "PSP-Noob questions" area?? Maybe this way complex questions will not be lost in a sea of nonsenses..... I ...
by cruisx
Thu Apr 03, 2008 7:32 am
Forum: PSP Development
Topic: need some help please *beginer*
Replies: 3
Views: 1475

So , you're not making a tile-based game? Well , then , search on google how to perform bounding box collision. Its really easy. The calculation is simple , you just need to check if x1,x1+w1,y1,y1+h1 , x2,x2+w2,y2,y2+h2 collide.... w=width h=height x=x position y=y position In games , bounding box...
by cruisx
Wed Apr 02, 2008 8:08 am
Forum: PSP Development
Topic: need some help please *beginer*
Replies: 3
Views: 1475

need some help please *beginer*

ok i need some help guys. I am trying to lean how to do collision detection with 2 objects on the screen but i am kinda stuck, im sure the problem is an easy one, but for a beginner i am having some trouble. //Oslib header file #include <oslib/oslib.h> //This is needed for eboot PSP_MODULE_INFO&...
by cruisx
Sun Mar 30, 2008 1:21 am
Forum: PSP Development
Topic: can someone explain how some of this code works?
Replies: 4
Views: 2605

You didn't really think you'd have 25 identical images of the same purple image on the Memory Stick did you? I can't see where the images are drawn in that code, but as with anything else, You use a master image that contains everything, and just specify the start coordinates and size of the sectio...
by cruisx
Sat Mar 29, 2008 12:30 pm
Forum: PSP Development
Topic: can someone explain how some of this code works?
Replies: 4
Views: 2605

can someone explain how some of this code works?

/*****************************************************\ Auteur &#58; Foury Jean-francois Auteur de &#58; Super Mario toy Jour 10 collision entre 1 sprite et une map \*****************************************************/ //La librairie principale OSLib #include <oslib/oslib.h> #include &quo...
by cruisx
Sat Mar 29, 2008 11:54 am
Forum: PSP Development
Topic: collision detection question using Oslib
Replies: 7
Views: 2492

Re: collision

THANK YOU!!! this is what i was looking for =D. to bad its in french but i get the main idea.
by cruisx
Wed Mar 26, 2008 5:58 am
Forum: PSP Development
Topic: collision detection question using Oslib
Replies: 7
Views: 2492

Looks like its tile based. You simply check if player's tile collides with the grass tile type. Something like this: typedef enum &#123; TILE_PLAYER=1, TILE_GRASS=2...ETC &#125; inline int getCurrentTileType&#40;const int& x,const int& y,const map& themap&#41; &#123;...