![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on TIFF Programming Lessons within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Lessons 1 - 3 + BLANK TIFF SDK Template as an All In One Check my sig. The lessons are ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() ![]() ...in a dream...
|
Lessons 1 - 3 + BLANK TIFF SDK Template as an All In One
Check my sig. The lessons are now in side the main.c in the comments so... Enjoy ![]() Changelog for v3 of my lessons: * Fixed up small bugs in GFX * Added custom colour value (RGB) * Added Lesson 3: Background Changer introducing SFX and bg color changing * Added some more functions to tiffsdk.c So, try this new version. Much more clean and organized and more functionality. Report any bugs/suggestions/requests/problems/etc. LESSONS: Lesson 1: Hello World Requires very small C programming skill. Basic app showing fade effect + text printing (ASCII games anyone? )Lesson 2: Counter Requires some C programming knowledge (switch statements). Basic app showing transitions with fade effect, printing a value to the screen (integer), and most importantly: controls/button input. Lesson 3: Background Changer Requires more C programming knowledge than last lesson, but not a whole lot. Basic app showing how to do menus efficiently, take input for each option menu, as well as change background color. Best of all, SFX is introduced! Yes, shows usage of sounds. A nice touch is the usage of RANDOM colour'd text.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) Last edited by SG57; 11-02-2006 at 08:03 PM.. |
|
|
|
|
|
#2 |
![]() ![]() I'm Baaaack!
|
Good Job.
![]() -= Double Post =- Just two things that need fixing. 1. You said that on a normal graph, (0,0) is in the bottom right hand corner. It's actually in the bottom left. I know that, but other people might not. 2. Your forgot the ";" after fadeOut.
__________________
Last edited by Propel; 10-31-2006 at 05:45 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#3 |
![]() |
good job but i think noobs wont be able to use the psp-programs tutorials cuz the 1.5 has way more functions so that is a real good idea... but psp programming is pretty self xplanitory after u see some source codes (or is it just me??)
|
|
|
|
|
|
#4 | |
![]() |
Quote:
|
|
|
|
|
|
|
#9 | |
![]() ![]() lol
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
|
Quote:
|
|
|
|
|
|
|
#11 |
|
Omggg I Been Waitin For This Nice S*** Sg I Was The One Who Told U Once To Make A Tutorial For Us ..thankssss Alot For Real ..
-= Double Post =- I Love The Fire Application U Did ..how About U Make Somtin So When We Press A Button It Changes Colors Like A Blue Fire Or Maybe Green Fire... Thanks Last edited by IMMIGRANT; 10-31-2006 at 09:08 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#12 |
![]() ![]() ...in a dream...
|
Ok, back from friends... First Im going to finish the tutorials, but its soooo hard to explain this stuff to people without ANY C knowledge, so from now on, im going to commnet it as if you know it, and if you dont, ill be linking every function/operator/routine used to a site to explain it. As for loadbin.tif - I explained what to do thinking every 2.8 user knows what a hex editor is as almost all of them like editing the text in some apps...
As for the other apps (flamez) im going to release the source to everything ive released so i dont have to be the only one on them... This way - people can update, learn and improve what ive started - only thing is theres a bug in Crucenic's collision i want to fix.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#14 | |
![]() ![]() Developer
|
This is going to sound a bit harsh - but I mean no disrespect to SG57.
I don't understand why your tutorials basically just use functions from the tetris code or your own fancy functions to print centred colored text? Why didn't you just do simple, easy to follow examples without the gfx.c/.h stuff from tetris? Lots of simple typo's too mate, crack down on those
__________________
![]() Check out my homebrew & C tutorials at http://insomniac.0x89.org/ Coder formerly known as Insomniac197 Quote:
|
|
|
|
|
|
|
#15 |
![]() ![]() ...in a dream...
|
I know. I was in a hurry. And hell, im not teacher and nor will i pretend to be one. But, I will finish what i started and get to lesson 4. As for typos, i think any prior experienced C coder should be able to read a debug output
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#18 |
![]() ![]() ...in a dream...
|
That sig is hot... Anyway you still can remove the PSP? I like the current one, but the PSP kinda ruined it for me. So, if you could just remove the PSP thatd be really awesome (no TIFF God thing though, atleast not yet i suppose). As for lessons, ive completed another one. ITs more for people with some prior expereince with C programming so... If you dont k now C well enough to understand the lesson 2, google
![]() But, im now trying my tutorials to see if theyactually work, and right now, lesson 2 is crashingafter fading for some reason. Ill take another look.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#19 |
|
sorry i was jst tryin to make it cooler lol
![]() another thing am havin this error doin the HELLOWORLD can u pls check it out and tell me what can b the problem http://i57.photobucket.com/albums/g2...igrant/yup.jpg |
|
|
|
|
|
|
#20 |
![]() |
y wont u stop with the template stuff??? u r going all their dirty work and they wont know wat to put wen they start from scratch on their own... y wont u make ur tutorials make them start from scratch and use the file they used the last time to use... ya. so they know wat the other codes actually do...
|
|
|
|
|
|
#21 | |
![]() I think I ripped my pants
Join Date: Jul 2005
Real First Name: Matt
Location: Toronto
Just Played: Trials HD
Posts: 6,485
Trader Feedback: 0
|
Nice tutorial. I'm sure this will help a quite a few people, although for some beginners, this still may be a little tricky
![]() None the less, another great tut to help the scene Well done! :claps:
__________________
![]() |
|
|
|
|
|
|
#22 |
![]() Join Date: Aug 2006
Real First Name: josh
Location: darkness
Just Played: rockband 2
Posts: 616
Trader Feedback: 0
|
i made this from the tut and heres the error iget and the scorce is at the bottom
can anyone tell me what to fix. Code:
psp-gcc -D PSP -I /usr/local/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomi t-frame-pointer -S main.c -o main.s psp-as main.s -o main.o psp-gcc -D PSP -I /usr/local/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomi t-frame-pointer -O2 -S tiffsdk.c -o tiffsdk.s tiffsdk.c:215: error: conflicting types for 'sceKernelDelayThread' /usr/local/pspdev/psp/sdk/include/pspthreadman.h:323: error: previous declaration of 'sceKernelDelay Thread' was here make: *** [tiffsdk.o] Error 1 Code:
#include <pspdisplay.h>
#include <pspctrl.h>
#include "gfx.h"
extern unsigned long failedNID;
SceCtrlData gpaddata;
#define BLACK 12
#define WHITE 1
#define PINK 2
#define RED 3
#define BLUE 4
#define GREEN 5
#define YELLOW 6
#define CYAN 7
#define GRAY 9
#define DARKBLUE 10
#define DARKRED 11
#define DARKGREEN 0
#define RANDOM rand()%12
#define true 1
#define false !true
#define bool int
unsigned long colours[13];
void InitGlobals() // use this to declare a variables value
{
colours[12]= 0x00000000L;
colours[1] = 0x00FFFFFFL;
colours[2] = 0x00FF00FFL;
colours[3] = 0x000000FFL;
colours[4] = 0x00FF0000L;
colours[5] = 0x0000FF00L;
colours[6] = 0x0000FFFFL;
colours[7] = 0x00FFFF00L;
colours[8] = 0x00FFFF88L;
colours[9] = 0x00888888L;
colours[0] = 0x00008800L;
colours[10]= 0x00880000L;
colours[11]= 0x00000088L;
}
extern _start; unsigned long gsp;
void ProcessKeys(unsigned long xikeys)
{
if (xikeys & PSP_CTRL_HOME) // if home is pressed
{
vshKernelExitVSHVSH(NULL); // exit
}
}
void main(unsigned long sp)
{
gsp = sp;
InitGlobals();
initSound();
initScreenAndCtrl();
// End Blank Template
for ( ;; ) {
fadeIn ();
fadeOut ();
PrintUltraCentered ( 131 , colours [ PINK ] , "deathanircist says doom to the World!" );changeBuffer();
}
__________________
heroes? i have none .....Love only yourself and fight only for your self |
|
|
|
|
|
#23 | |
![]() |
Quote:
|
|
|
|
|
|
|
#25 |
![]() ![]() ...in a dream...
|
Hey guyz, lesson 2 is up, lesson 1 revised, better nad upto date GFX and blank tiff sdk, etc...
too many new and better things to list, just check my site and first post! ![]() P.S. Mod, can you change hte title of this in the forum to the one actually in here? thx alot. P.P.S. Id like to post in the Developers Dungeon, buti cant... *crys*
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#26 |
![]() ![]() Developer in Making...
|
he nice, i might take a look at these once i get the hang of C...or C++...still deciding
__________________
NEWMy New BLOG!NEW The Wentire Worls in two Sectors.... When did I get dev statz?Spoiler for my PSP homebrewReleases:
Spoiler for Great Quotes:
|
|
|
|
|
|
#29 |
![]() ![]() ...in a dream...
|
UPDATED!
Check first post for more dtails but... Better GFX library, Better BLANK Template, Added new lesson, that lesson has SFX and a menu so someone should be able to make a small game now... Even if its just 21
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
![]() |
| Tags |
| lessons , programming , tiff |
| Thread Tools | |
|
|