Cobra Programing Language
- 5 Devlogs
- 11 Total hours
The Cobra Programing Language is a language that has similarities to regular python but is designed for game development (specifically 2d). And yes this is a interpreted language made with python.
The Cobra Programing Language is a language that has similarities to regular python but is designed for game development (specifically 2d). And yes this is a interpreted language made with python.
Ive done some touchups on the code and added the inside function for If. It allows to check if something is inside the space you say.
I added the Watch opcode that allows you to watch multiple variables in to terminal for debugging purposes. And I tried to add a wait function where you can still use the program (not like time.sleep()). also changed the icon a tad
Ive done some light touch ups and simple optimizations but I dont really know what to do next. so Im going to fiddle with this for a bit and hope to get some new ideas. The code is similar to the last devlog but with some tweaks that Ive done to the code.
New icon and loads of new opcodes! DebugInfo is a opcode that displays useful info like the fps time current opcode that its running and what like the program is looking at. The If opcode works and supports: > = < ! >= <=. The Var opcode has added: sqrt pow abs dist vec3 rrng (ranrange). There is image, button and (possibly) text support. The Screen got some more opcodes like Caption and a toggleable fps counter by using fps. There is Sound but I havent tested it yet. I decided to use pixel art for the icon because I am better at that compared to digital drawing and I like how it turned out. How this whole language works is like reading a list, were it looks at the code line by line and runs it. Then if it hits something like a LoopEnd then it will go back to the Loop that it noted earlier. Because of this, I dont think I am going to add defs and functions (and ifs sound do the trick). The picture of the code runs a program that has a simple “menu” with a button, after that there is a simple 2d movement script.
First devlog of this project. I have programed (some) functionality’s for these keywords: print, log, loop/Endloop, Break, If/IfEnd (kinda), Var (variables, +-*/ floor, round, ceiling color), and some very basic screen stuff: Screen (init, Caption, pos, box, fill, update, quitControl). This is a interpreted programing language ran through python and is not meant to run fast (yet, maybe). The logo is wip