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.

DarkBASIC Professional Discussion / i going to attempt to build a entity editor!!

Author
Message
hexeg0n
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 25th Jan 2013 23:58 Edited at: 26th Jan 2013 00:02
sick of loading levels created from 3d software and just run around them ok and abit of collisions easy but what about entities like exploding crates / barrels trigger zones placing emitters in the level you have created then saving all data would be cool !! if any one is interested let me know !

heres some code using bluegui free version its a start mind you lol

Rem Project: editor
Rem Created: Thursday, January 24, 2013

Rem ***** Main Source File *****

//
#Constant CMD_EXIT 0

//
Type ApplicationUi
dbwindow as integer
mainmenu as integer
filemenu as integer
statusbar as integer
EndType

//
Global myApp As ApplicationUi

//
CreateUi()

//
#Constant ScreenW 1024
#Constant ScreenH 768
#Constant ScreenD 32

//
Phy Start
Sync On
Sync Rate 0
Set Display Mode ScreenW, ScreenH, ScreenD

//
Make Object Box 1,100,1,100
Position Object 1,0,0,0
Rotate Object 1,0,0,0
Color Object 1,Rgb(25,16,123)
Phy Make Rigid Body Static Box 1

//
Make Object Sphere 2,20
Position Object 2,0,40,0
Rotate Object 2,0,0,0
Color Object 2,Rgb(225,16,123)
Set Shadow Shading On 2
Phy Make Rigid Body Dynamic Sphere 2

//
Set Camera View 0,0,ScreenW-128,ScreenH-20
Position Camera 0,150,160,-20
Point Camera 0,0,0,0

//
Position Light 0,200,120,-40
Point Light 0,0,0,0

//
Do

//
ProcessEvents()

//
Phy Update

//
FastSync

Loop

//
Function ProcessEvents()

//
GetEvent

//
_EventType = EventType()

//
_EventData = EventData()

//
_EventDataEx = EventDataEx()

//
_EventSource = EventSource()

// process menu events
If _EventType = MENU_CLICK

//
If _EventData = CMD_EXIT
DeleteGadget myApp.dbwindow
End
Endif

Endif

Endfunction

//
Function CreateUi()

// grab darkbasic window
myApp.dbwindow = CreateGadgetFromWindow( MainWindow() )

// create main menu & attach it to dbwindow
myApp.mainmenu = CreateMenu( myApp.dbwindow )

// create file menu item
AddMenuItem myApp.mainmenu, "&File", 0

// create file sub menu & attach it to > myApp . main menu
myApp.filemenu = CreateSubMenu( myApp.mainmenu, 0 )

// create exit menu item & attach it to > myApp . file menu
AddMenuItem myApp.filemenu, "Exit", CMD_EXIT

//
myApp.statusbar = CreateStatusBar( myApp.dbwindow )

//
AddStatusPanel myApp.statusbar, 200

//
SetStatusText myApp.statusbar, 1, "Ready..."

// create right side panel
panel = CreatePanel(ScreenW-128,0,ScreenW,ScreenH-41, myApp.dbwindow )


Endfunction

hexeg0n
Nytus Sermus
13
Years of Service
User Offline
Joined: 17th Jan 2013
Location:
Posted: 28th Jan 2013 23:29
aarrr
Hey there i was just wondering how committed you are to making this entity editor. I was also wanting to know what exactly was the intended limitations of the program- eg: will it edit single objects only, to rig them for the game, or will it work as a level editing tool or somewhere in-between. I ask because i'm shamelessly
plugging my "All in one Program", hoping to generate some interest and maybe get some people involved. I dont have anything publishable yet but from reading your original post thought we might be able to combine our efforts

You could be done already.....stop trying to re-invent the wheel.
hexeg0n
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location:
Posted: 7th Feb 2013 15:59
hi Nytus

building levels isnt that hard in 3d world studio or mapscape or even 3d max

ok you load that into dbp and walk around etc:

but i want a editor that can do the same but will let you place objects in that level/world with physics properties, ai, etc:

then save the world as dbp source code then load it all in dbp press the compile button to see all the level set up with physics.

but i would be interested in helping eachother code wise?

hexeg0n
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 7th Feb 2013 16:25 Edited at: 7th Feb 2013 16:25
Starting from scratch? Start here http://www.evolved-software.com/mapscape/mapscape

*** Merry Chuckmas! ***
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 7th Feb 2013 18:50
You may be interested in my Dynamic World Simulator [DWS] Project then... I will start work on it in 2 weeks once I sort out my data and files management... life truly gets in the way sometimes >.<

More information about it is on the InGaCreMo 2013 thread...

Login to post a reply

Server time is: 2026-07-07 02:19:23
Your offset time is: 2026-07-07 02:19:23