SDK - Project part 2

Start a log and update it occasionally with your projects progress
Post Reply
User avatar
bizarro2011
Serious PSXDEV User
Serious PSXDEV User
Posts: 118
Joined: March 27th, 2012, 9:09 pm
Skype: abernardo2011
Location: Brazil

SDK - Project part 2

Post by bizarro2011 » March 18th, 2014, 12:53 pm

SDK - PART 1 reviewing
Image
Download Source: Part 1
http://www.mediafire.com/download/dcpjk ... x/psyq.rar

how to compile
Image

Image

Image

Image

-------------------------------------------------------------------------------------------------------------
PART 2 - SDK BIZARRO 1.0
Image
EXPECTED PART 2
- Print object (tim)
- Print texture (tim)
- print text (tim)
- print screen (tim)

WE NEED TO:
- MAIN.C
- SYSTEM.H
- MAKEFILE.MAK
- DATAFILE.ASM

MAKEFILE - WAS MODIFIED

Code: Select all

CC   = ccpsx
ASM  = asmpsx
LINK = psylink

CCOPTIONS  = -c -g -comments-c++
ASMOPTIONS = /l /o c+,h+,at- /zd
LINKOPTS   = -Xo$80010000 /m
TEST_OBJS  = main.obj  datafile.obj


all  : main.cpe
       echo Done.

main.obj: main.c
        $(CC) $(CCOPTIONS) main.c -omain.obj

datafile.obj: datafile.asm
    $(ASM) /l datafile.asm,datafile.obj

main.cpe: $(TEST_OBJS) 
    ccpsx -Xo$80010000 $(TEST_OBJS) -omain.cpe,main.sym,main.map -l libtap.lib
    cpe2x main.cpe
PROGRAM: TO LOAD TIM
DATAFILE.ASM

Code: Select all

    opt     c+
   	section datasection

        global gra_fnt1       
        global obj_ima1
        global obj_ima2
        global screen1

		cnop 0,4
gra_fnt1:
    incbin ".\tim\font\font.tim"

obj_ima1:
    incbin ".\tim\object\obj32-01.tim"

obj_ima2:
    incbin ".\tim\object\obj32-02.tim"

screen1:
    incbin ".\tim\screen\tela2.tim"
Download Source: Part 2
http://www.mediafire.com/download/l8kgs ... 2b/sdk.rar

FUNCTION:

-GRADE
-FntGra
- SCREEN
- OBJECTT

ALREADY INCLUDES 2 PAD
FORECAST FOR PART 3

---------------------------------------------------------
UPDATE FUNCTION SCREEN (ALL SCREEN SIZE)

- SOUND
- MUSIC
- 3D OBJECT
LIKED THEN ...
POST A LIKE.
:dance

User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 231
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Re: SDK - Project part 2

Post by Orion_ » March 19th, 2014, 4:36 am

void color(char *cor1){
if (cor1=="BLUE") <- This is pretty ugly and should not even work, you can't compare a string like that in C
also doing all your code in a .h file is not recommended.

I'm sorry to say this but, you should not call this a SDK, it's just a poorly coded example of how to use the psy-q sdk.
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Re: SDK - Project part 2

Post by t0rxe » March 19th, 2014, 1:35 pm

Orion is right and you should be using strcpy();
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest