You are browsing as a guest. Sign up (or log in) to start making projects!

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.

Ship #1

Cobra Programing language Beta V1!!!!

This little interpreted programing language was built to make 2d programing easier by making things simple. This language will combine multiple lines of code into one like foe example: Screen init 500 500. What this snit-bit of does is create a screen and sets the window size. As this is just a beta, I am going to be working on this still but I just wanted to get this out there for people to experience. The hardest part about this was trying to figure out what kind of syntax I wanted for this. I came up with the idea that your reading a list, starting from the top and reading line by line. I am proud of even making this in the first place. Ive always wanted to do this and have attempted a compiled programing language (that i might never touch again) that I watched a tutorial for. But this time I went for interpreted and going line by line looking at the first word and reacting that way. Before people test this project I would like to let them know that this is beta and that documentation is coming soon.

Enjoy -Cy

  • 5 devlogs
  • 11h
Try project → See source code →
Open comments for this post

53m 55s logged

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

0
0
6
Open comments for this post

38m 32s logged

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.

0
0
3
Open comments for this post

3h 18m 18s logged

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.

0
0
6
Open comments for this post

4h 49m 11s logged

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

0
0
7

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…