Search found 38 matches
- August 11th, 2019, 4:05 am
- Forum: Graphics/GPU
- Topic: Easiest way to make a Sprite?
- Replies: 13
- Views: 22996
Re: Easiest way to make a Sprite?
No, no and NO; what you posted is an array definition containing a collection of CLUTs for 4bpp images/sprites, not a "CLUT address" :roll: Oh sorry, I didn't know what is that mean, and that's what I think is, but... How can I get the CLUT array? (Is that fine?) After converting a 16-bit...
- August 11th, 2019, 1:07 am
- Forum: Graphics/GPU
- Topic: Easiest way to make a Sprite?
- Replies: 13
- Views: 22996
Re: Easiest way to make a Sprite?
It's not quite clear if you mean the CLUT address as in the x/y coordinates on VRAM, or the address inside the TIM file itself. No, you don't know what is CLUT address, the CLUT address is like this: // various CLUT for 4-bit balls static u_long ballcolor[][8] = { 0x88670000,0x8cab8caa,0x94ef90cd,0...
- August 10th, 2019, 12:26 am
- Forum: Graphics/GPU
- Topic: Easiest way to make a Sprite?
- Replies: 13
- Views: 22996
Re: Easiest way to make a Sprite?
There are heaps of Sony examples on how to use 4-bit or 8-bit TIM images. Yeah... I searched everywhere, the examples as you say, but didn't find it! And I only found the examples that uses "libgs", and I didn't used it, and I'm not 100% sure if there's a difference between "libgpu&q...
- August 6th, 2019, 11:48 pm
- Forum: Graphics/GPU
- Topic: Easiest way to make a Sprite?
- Replies: 13
- Views: 22996
Re: Easiest way to make a Sprite?
Alright, finally found out how to make a sprite, I made a ball, But I want my sprite, and I don't know how to get the address of the CLUT! I have a 16-bit TIM, and as I know, that it doesn't use CLUT, and I tried to load the sprite WITHOUT CLUT, cuz I don't know the address of the clut, and doesn't ...
- July 27th, 2019, 9:41 am
- Forum: Graphics/GPU
- Topic: Easiest way to make a Sprite?
- Replies: 13
- Views: 22996
Easiest way to make a Sprite?
Hello, I'm new at making sprites, and I really don't know how to make them.
Tried to follow the examples, and didn't worked.
Is there a easy way to make sprites?
Here's the source code, so you can help me:
Tried to follow the examples, and didn't worked.
Is there a easy way to make sprites?
Here's the source code, so you can help me:
- July 25th, 2019, 4:52 am
- Forum: Examples (Psy-Q)
- Topic: 3D FPS Example
- Replies: 43
- Views: 132415
Re: 3D FPS Example
I see what's wrong. Forgot to set "SetDefDispEnv(&disp, 0, 256*ActivePage, SCREENXRES, SCREENYRES);" to "SetDefDispEnv(&disp, 0, 0, SCREENXRES, SCREENYRES);" Same as "SetDefDrawEnv". So thank you for helping me. And thanks to you, I can make my own 3D game like ...
- July 12th, 2019, 5:48 am
- Forum: Homebrew (Homepage)
- Topic: ROLL BOSS RUSH -{Homebrew Project}- (PSX/PSone/Playstation)
- Replies: 72
- Views: 267533
Re: ROLL BOSS RUSH -{Homebrew Project}- (PSX/PSone/Playstation)
I tried to download the game, but it says "Error (400)", what's going on?
- July 12th, 2019, 5:33 am
- Forum: Examples (Psy-Q)
- Topic: 3D FPS Example
- Replies: 43
- Views: 132415
Re: 3D FPS Example
Nice example LameGuy64! But I have one more problem. I want to set the resolution to 640x480, but the screen is glitchy!
How can I fix that?
How can I fix that?
- March 12th, 2019, 3:11 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
Ok! Thank you! I'm going to post the example! And report if you got issues!
- March 12th, 2019, 2:01 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
Thank you! It worked perfectly! Now I'm ready to show the example! The example contains XA + STR Playback and controller detect! Is it good to post it? And where can I post this?
- March 11th, 2019, 5:00 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
Yes, anyway! I have one more problem: When I remove controller 2, the second box is not disappearing! I also tried with PadStateStable and PadStateFindCTP1, But everything is disappearing! How to fix this? Example of code: ret_a = PadGetState(0x00); switch(ret_a) { case PadStateDiscon: /If it's disc...
- March 10th, 2019, 10:44 am
- Forum: Input/Output
- Topic: How to check Memory Card and save the game?
- Replies: 1
- Views: 10913
How to check Memory Card and save the game?
Hello everybody, I have the next question:
How to check Memory Card and save the game? I tried the example from LameGuy64, but I wanted to save the game by pressing the start button, and I deleted unused codes, and the game crashes!
Any Ideas? Thanks in advance!
How to check Memory Card and save the game? I tried the example from LameGuy64, but I wanted to save the game by pressing the start button, and I deleted unused codes, and the game crashes!
Any Ideas? Thanks in advance!
- March 10th, 2019, 9:57 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
No need to do that! Now it works! I need to use PadInitDirect First! Otherwise the game crashes! Thanks for helping me! And I'm sorry! You know I'm aproximatelly noob at coding and I still know how to code, cuz I learned! But I didn't know PadInitDirect must be used!
- March 10th, 2019, 5:08 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
Still gives an error!
Here's the signature!
There are some codes that are used for STR and XA Files! Delete them first!
Here's the signature!
There are some codes that are used for STR and XA Files! Delete them first!
- March 10th, 2019, 4:09 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
I tried this: ret_a=PadGetState(0); switch(ret_a) { case PadStateDiscon: con_a = 0; case PadStateFindPad: con_a = 1; } ret_b=PadGetState(1); switch(ret_b) { case PadStateDiscon: con_b = 0; case PadStateFindPad: con_b = 1; } But it shows an error like "Unknown opcode BFC0506C at 00008548" a...
- March 9th, 2019, 8:11 pm
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
Re: How to get controller state?
PadInit() Initializes Controller, and I want to know how to get Controller Slots! Example:
If PadPort1FindPad() {
port_a =1
}
If PadPort2FindPad() {
port_b = 1
}
If PadPort1FindPad() {
port_a =1
}
If PadPort2FindPad() {
port_b = 1
}
- March 9th, 2019, 9:17 am
- Forum: Input/Output
- Topic: How to get controller state?
- Replies: 15
- Views: 28929
How to get controller state?
Hello everybody, I have a question:
How to get controller state?
For example:
if PadStateFindPad = PAD_ONE {
box_a = 1;
}
else if PadStateFindPad = PAD_TWO {
box_b = 1;
}
else {
box_a = 0;
box_b = 0;
}
Or if there's a documentation, then post it here! Thanks in advance!
How to get controller state?
For example:
if PadStateFindPad = PAD_ONE {
box_a = 1;
}
else if PadStateFindPad = PAD_TWO {
box_b = 1;
}
else {
box_a = 0;
box_b = 0;
}
Or if there's a documentation, then post it here! Thanks in advance!
- March 9th, 2019, 7:20 am
- Forum: Examples (Psy-Q)
- Topic: Simple STR video player library
- Replies: 14
- Views: 85975
Re: Simple STR video player library
Your code works fine. Good job! But I want to play the STR file one time. To play the STR file one tine, replace: while (1) { if (PlayStr(320, 240, 0, 0, &StrFile[0]) == 0) // If player presses Start break; // Exit the loop } to: PlayStr(320, 240, 0, 0, &StrFile[0]); I tested and it worked p...