Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / new way to load objects, sprites, images, etc.

Author
Message
DARKBASIC PRO 3d WORLD EDITOR
12
Years of Service
User Offline
Joined: 2nd May 2012
Location:
Posted: 20th May 2015 04:46 Edited at: 20th May 2015 05:23
Okay I am a beginner but I am coming along pretty well but my friends are not so successful... I decided to create a new system of writing to assist them better and make it easier to read as this is #3 priority to me in coding under #1 copying others and #2 increasing speed..

So I was wondering if any beginner's would use this sytem useful...

What is the system? Well I haven't named it or 100% finished it yet but here goes nothing... A list of custom functions:

You usually would load objects like this:

[/code]
sync on: sync rate 0
load object "car.x",1
do
yrotate object 1, wrapvalue((object angle y(1))+1)
sync: loop
end



This is how I do it:



gosub INI_Globals
INI_Init()
INI_LoadObject("car.x","Toyota","cars")
do
INI_Object("Toyota","yrot",INI_ObjYRot("Toyota"))
sync: loop: INI_End()




both 6 lines, but after a while it will be 3:1 ratio after 20 lines or so...

anyone interested let me know.. and I'm working with CodeSurge so I suggest using that as it highlights the keywords and I'm creating a help file...

Let me know if interested... Its already helping people now!!!
Creative criticism welcome

Example Functions:






Extensive list
----------------------------------------------------
INI3D OBJECTS
----------------------------------------------------
* done
{Objects}
*INI_LoadObject(Object File, Object Name, Group Name)
*INI_SaveObject(Object Name, Save As File, Extension)
*INI_DeleteObject(Object Name)
*INI_Object()
*INI_TextureObject(Object Name, Texture File)
*INI_MakeObject()

{Object Groups}
-INI_CombineObjectGroups(Group Name 1,Group Name 2)
*INI_AddObjectToGroup(Object Name, Save As File, Extension]
-INI_ObjectGroup(Group Action,Group Name)


{Returns}
*INI_FindFreeObject()
*INI_FindFreeObjectName()
*INI_GetObjectNumByName()


-----------------------------------------------------
SDC(Screen Display Commands)
---------------------------------------------------------
*INI_UNLOCK
*INI_LOCK

{SD
*INI_DeleteSD
*INI_SDBox
*INI_SDCall

{SD returns
*INI_SDExist
*INI_FindFreeSD

{
*INI_ScreenMode

{icons
*INI_Icon


{icon returns
*INI_FindIconNumbyName
*INI_FindFreeImageforIcon
*INI_FindFreeIcon
*INI_FindImageFromIcon

{buttons


{datalist


{toolbars



--------------------------------------------------------
TEXT
--------------------------------------------------------
*INI_Text
*INI_ColorText
*INI_SetFont
*INI_Color
*INI_Text2Columns
*INI_Text3Columns
-INI_DataTable

*INI_GetFontString

--------------------------------------------------------
INPUT
--------------------------------------------------------
*INI_ControlCameraWithMouse
*INI_CenterMouse
*INI_ActionMouse
*INI_MouseRead
*INI_ControlCameraWithArrows
*INI_PositionMouse

*INI_KeyMatch
*INI_InputTextBox
*INI_ActionKeySwitch
*INI_KeyExitLoop

--------------------------------------------------------
SPRITES/IMAGES
--------------------------------------------------------
*INI_DELETEALLSPRITES
*INI_HighLightSprite

*INI_FindFreeSprite
*INI_ImageCount
*INI_FindNextImage
*INI_FindSpriteFromImage
--------------------------------------------------------
2D DRAWING
--------------------------------------------------------
*INI_d3d_box


--------------------------------------------------------
Nature
---------------------------------------------------------
*INI_SKY(X,Y,Z)




---------------------------------------------------------
Core
---------------------------------------------------------
*INI_init()
*INI_Globals
*INI_CLS
*INI_End()



*INI_Wrap
*INI_Random


==============================================
Others

*INI_Speak
*INI_PBar
*INI_Priority
*INI_EnergyBar
*INI_GetCameraCount
*INI_TotalIconRead
*INI_MusicToolBar
*INI_ScreenShotWithKey
*INI_VolumeBar
*INI_IconCount
*INI_IconAction
*INI_FindFreeImage
[code]

- Infinity is Simplicity -

Login to post a reply

Server time is: 2024-11-27 05:43:32
Your offset time is: 2024-11-27 05:43:32