Page 1 of 1

SDK - Project part 2

Posted: March 18th, 2014, 12:53 pm
by bizarro2011
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

Re: SDK - Project part 2

Posted: March 19th, 2014, 4:36 am
by Orion_
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.

Re: SDK - Project part 2

Posted: March 19th, 2014, 1:35 pm
by t0rxe
Orion is right and you should be using strcpy();