Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
I made a Coppercube code editor with tons of features

hanicraft
Registered User
Quote
2023-07-09 15:26:19

So we all know coppercube lacks a code editor so I made one
It got tons of features that I'm will tell right now
Features:
Syntax highlighting
Code completion(support full api)
Gpt4 code generator
Javascript code validation
And please tell me what features should I add next
https://mohamadhanijanaty85.itch...


sven
Registered User
Quote
2023-07-09 15:34:28

Its a very good start.
What i would like to see is FONT settings (text too small for me right now)
Editor rect wont resize if i make it full screen-would be nice to have full screen editor.


Monks
Guest
Quote
2023-07-09 15:57:33

Sven pls I need ur healthbar ccb


sven
Registered User
Quote
2023-07-09 16:01:14

Monks wrote:
Sven pls I need ur healthbar ccb


Its lost somewhere, i can make new if i have time.
But there are also better healthbars avaiable ,made by other developers.


Monks
Guest
Quote
2023-07-09 16:23:21

Oh pls then I'm expecting it, I've tried the other healthbars but for a reason they don't work but I have hopes dat urs will work, really high hopes


hadoken
Guest
Quote
2023-07-09 17:43:41

@Monks,

found an old health bar example shared by @Sven quite a while ago, maybe this is what you are looking for:

https://www.dropbox.com/scl/fi/h...

(thanks @Sven)


Monks
Guest
Quote
2023-07-09 18:50:13

Tnks hadoken


guesr
Guest
Quote
2023-07-09 18:59:40

Open AI key?


hanicraft
Registered User
Quote
2023-07-09 20:30:30

Version 1.1 released with new features
Features:
Ability to edit font size
Dark mode

Thanks for everyone who gives ideas. Also new ideas are welcome


guest
Guest
Quote
2023-07-09 21:21:15

When it asks me Open Ai key

what does it want me to do?


hanicraft
Registered User
Quote
2023-07-09 21:50:54

guest wrote:
When it asks me Open Ai key

what does it want me to do?

Your openai api key
A few days ago openai released gpt4 api to public.

https://openai.com/blog/openai-api

Remember to use gpt4 because it's only model that produces coppercube working code


hanicraft
Registered User
Quote
2023-07-09 22:13:08

wrote:
Its a very good start.
What i would like to see is FONT settings (text too small for me right now)
Editor rect wont resize if i make it full screen-would be nice to have full screen editor.

Added. Thank you sven for your feedback


Robbo
Guest
Quote
2023-07-10 03:15:41

Very interesting - how about code types in different colors to stand out better:

*** generic javascript as one color (blue?) :
new
vector3d
.add
.substract
function
Math.random
Math.round
Math.floor
Math.ceil
Math.abs
Math.min
Math.max
Math.sin
Math.cos
Math.tan
this.
&&
&&&
||

*** CopperCube API as another color (green?)

ccbReadFileContent relative (percent)
ccbGetCopperCubeVariable
ccbGetSceneNodeFromName
ccbGetSceneNodeProperty
ccbSetSceneNodeProperty
ccbSetCopperCubeVariable
ccbCloneSceneNode
ccbGetActiveCamera
ccbSetActiveCamera
ccbGetChildSceneNode
ccbGetRootSceneNode
ccbGetSceneNodeChildCount
ccbGetSceneNodeMaterialCount
ccbGetSceneNodeMaterialProperty
ccbSetSceneNodeMaterialProperty
ccbRemoveSceneNode
ccbSetSceneNodeParent
ccbSetSceneNodePositionWithoutCollision
ccbRegisterKeyDownEvent
ccbRegisterKeyUpEvent
ccbRegisterMouseDownEvent
ccbRegisterMouseUpEvent
ccbRegisterOnFrameEvent
ccbUnregisterOnFrameEvent
ccbDrawColoredRectangle
ccbDrawTextureRectangle
ccbDrawTextureRectangleWithAlpha
ccbGet3DPosFrom2DPos
ccbGet2DPosFrom3DPos
ccbGetCollisionPointOfWorldWithLine
ccbDoesLineCollideWithBoundingBoxOfSceneNode
ccbEndProgram
ccbLoadTexture
ccbGetMousePosX
ccbGetMousePosY
ccbGetScreenWidth
ccbGetScreenHeight
ccbSetCloseOnEscapePressed
ccbSetCursorVisible
ccbSwitchToScene
ccbPlaySound
ccbStopSound
ccbWriteFileContent
ccbFileExist
ccbFileDelete
ccbGetPlatform
ccbInvokeAction
ccbGetCurrentNode
ccbCleanMemory
ccbSwitchToFullscreen
ccbDoHTTPRequest
ccbCancelHTTPRequest
ccbCreateMaterial
ccbSetShaderConstant
ccbSetPhysicsVelocity
ccbUpdatePhysicsGeometry
ccbAICommand
ccbSteamSetAchievement
ccbSteamResetAchievements
ccbSaveScreenshot
ccbSaveTexture
ccbSwitchToCCBFile
print
system
ccbGetSceneNodeMeshBufferCount
ccbRemoveMeshBuffer
ccbAddMeshBuffer
ccbGetMeshBufferVertexCount
ccbGetMeshBufferIndexCount
ccbAddMeshBufferIndex
ccbGetMeshBufferIndexValue
ccbSetMeshBufferIndexValue
ccbAddMeshBufferVertex
ccbGetMeshBufferVertexPosition
ccbSetMeshBufferVertexPosition
ccbGetMeshBufferVertexTextureCoord
ccbSetMeshBufferVertexTextureCoord
ccbGetMeshBufferVertexNormal
ccbSetMeshBufferVertexNormal
ccbGetMeshBufferVertexColor
ccbSetMeshBufferVertexColor
ccbUpdateSceneNodeBoundingBox

*** Operators and Delimtors as another color
{ } ; ( ) , + - [ ] * / = < >

** Comments as another color (grey?)
/* and */
//

** Text input between quotes as another color (pink?)
" "
' '

** Numbers as another color (orange?)

Would stand out better leaveing only whats left as the default color


hanicraft
Registered User
Quote
2023-07-10 09:03:38

Robbo wrote:
Very interesting - how about code types in different colors to stand out better:

*** generic javascript as one color (blue?) :
new
vector3d
.add
.substract
function
Math.random
Math.round
Math.floor
Math.ceil
Math.abs
Math.min
Math.max
Math.sin
Math.cos
Math.tan
this.
&&
&&&
||

*** CopperCube API as another color (green?)

ccbReadFileContent relative (percent)
ccbGetCopperCubeVariable
ccbGetSceneNodeFromName
ccbGetSceneNodeProperty
ccbSetSceneNodeProperty
ccbSetCopperCubeVariable
ccbCloneSceneNode
ccbGetActiveCamera
ccbSetActiveCamera
ccbGetChildSceneNode
ccbGetRootSceneNode
ccbGetSceneNodeChildCount
ccbGetSceneNodeMaterialCount
ccbGetSceneNodeMaterialProperty
ccbSetSceneNodeMaterialProperty
ccbRemoveSceneNode
ccbSetSceneNodeParent
ccbSetSceneNodePositionWithoutCollision
ccbRegisterKeyDownEvent
ccbRegisterKeyUpEvent
ccbRegisterMouseDownEvent
ccbRegisterMouseUpEvent
ccbRegisterOnFrameEvent
ccbUnregisterOnFrameEvent
ccbDrawColoredRectangle
ccbDrawTextureRectangle
ccbDrawTextureRectangleWithAlpha
ccbGet3DPosFrom2DPos
ccbGet2DPosFrom3DPos
ccbGetCollisionPointOfWorldWithLine
ccbDoesLineCollideWithBoundingBoxOfSceneNode
ccbEndProgram
ccbLoadTexture
ccbGetMousePosX
ccbGetMousePosY
ccbGetScreenWidth
ccbGetScreenHeight
ccbSetCloseOnEscapePressed
ccbSetCursorVisible
ccbSwitchToScene
ccbPlaySound
ccbStopSound
ccbWriteFileContent
ccbFileExist
ccbFileDelete
ccbGetPlatform
ccbInvokeAction
ccbGetCurrentNode
ccbCleanMemory
ccbSwitchToFullscreen
ccbDoHTTPRequest
ccbCancelHTTPRequest
ccbCreateMaterial
ccbSetShaderConstant
ccbSetPhysicsVelocity
ccbUpdatePhysicsGeometry
ccbAICommand
ccbSteamSetAchievement
ccbSteamResetAchievements
ccbSaveScreenshot
ccbSaveTexture
ccbSwitchToCCBFile
print
system
ccbGetSceneNodeMeshBufferCount
ccbRemoveMeshBuffer
ccbAddMeshBuffer
ccbGetMeshBufferVertexCount
ccbGetMeshBufferIndexCount
ccbAddMeshBufferIndex
ccbGetMeshBufferIndexValue
ccbSetMeshBufferIndexValue
ccbAddMeshBufferVertex
ccbGetMeshBufferVertexPosition
ccbSetMeshBufferVertexPosition
ccbGetMeshBufferVertexTextureCoord
ccbSetMeshBufferVertexTextureCoord
ccbGetMeshBufferVertexNormal
ccbSetMeshBufferVertexNormal
ccbGetMeshBufferVertexColor
ccbSetMeshBufferVertexColor
ccbUpdateSceneNodeBoundingBox

*** Operators and Delimtors as another color
{ } ; ( ) , + - [ ] * / = < >

** Comments as another color (grey?)
/* and */
//

** Text input between quotes as another color (pink?)
" "
' '

** Numbers as another color (orange?)

Would stand out better leaveing only whats left as the default color


Thanks for the feedback robbo
I added these features you can download updated version on its.


Robbo
Guest
Quote
2023-07-10 12:42:09

Much better cheers - fast update also :)

How about the ability to change the default text color (ie for Dark mode to lighter color like white ) plus have the ability to turn on/off bold fonts to stand out even more ?

The red box highlight for opening and closing {} brackets is nice but can it be even more highlighted like a yellow box so its even more obvious as this part is super important ?

The CC API code is not highlighted. The blue looks good and stands out well and the pink is pretty good also. Numbers don't stand out by themselves. The green for comments is fine but better to be bold font instead (or just have the bold to all font as on/off tickbox).

I would change the text inputs (" " , ' ') to maybe red instead of grey (stands out better).

On full screen can we get full screen viewing ?

The syntax checker says 'vector3d' is invalid, its ok for CC actually.

Any chance to get code completion ? (ie start to write ccb and a list shows up of all commands starting with that entry)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact