Pages: 1
  Print  
Author Topic: CPGCL - Cross Platform Game Creation Language  (Read 10305 times)
Offline (Unknown gender) Ashramaru
Posted on: March 22, 2014, 05:46:25 am
Member
Joined: Mar 2014
Posts: 4

View Profile
hello I am currently developing a programming language for creating games that can produce Win, Mac, Linux, IOs and android binaries from one single source file.  The structure of a CPGCL program will be like this

program test{




sprite spr_1   {                 
   file: "enemy.png"
   

}

font font_1{
file: "Arial.ttf"

}



object obj_1{
depth: 5;
sprite: spr_1;

key_down(){
if(vk_right){


}

}

}


map map_1{
file: "maps/1.map";
place_objects: {obj_1};

}


run(){
load_map(map_1);


}




}


and to build will be as simple as this:
cpgcl  test.cpgcl -target android


I will  be posting video previews soon
« Last Edit: March 22, 2014, 06:18:56 am by Ashramaru » Logged
Offline (Unknown gender) TheExDeus
Reply #1 Posted on: March 22, 2014, 06:47:42 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
So it supports GML for coding? Although just using vk_down to check a button is slightly different. If it supports syntax like GML or EDL, then it could be possible to make an export for LGM, which would take a GMK/EGM or whatever and create this file with resources.
Looking forward to seeing the video.
Logged
Offline (Unknown gender) onpon
Reply #2 Posted on: March 22, 2014, 08:19:47 am

Member
Joined: Feb 2010
Posts: 102

View Profile WWW Email
Quote
a programming language for creating games that can produce Win, Mac, Linux, IOs and android binaries from one single source file

That's not exactly special. Languages being cross-platform has been a normal thing for decades now. Even Game Maker supports at least the popular systems now.

I'm looking at your example code, I don't see anything special about it. It looks like a variant of JSON with a couple of minor changes and the unnecessary "if" syntax. If you want to create ENIGMA files in a JSON-like structure, why not just use JSON?

Side note: no indentation = ugly.
« Last Edit: March 22, 2014, 08:22:47 am by onpon » Logged
Offline (Unknown gender) TheExDeus
Reply #3 Posted on: March 22, 2014, 09:22:09 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Quote
That's not exactly special.
Nothing is really "special". UE4 is also nothing really special. But his take is quite original. It seems to give the ease of development given by GML and the same time allows you to do so without a special IDE. It's basically like python, only better (because almost everything is better than python).
Logged
Offline (Unknown gender) onpon
Reply #4 Posted on: March 22, 2014, 10:06:25 am

Member
Joined: Feb 2010
Posts: 102

View Profile WWW Email
It's just a structured file with data, like a JSON or XML file... how exactly is that "original"? Game Maker has been using XML files for quite a while now. Trying to devise a syntax which is almost identical to JSON from scratch just strikes me as a complete waste of effort.

Quote
It seems to give the ease of development given by GML and the same time allows you to do so without a special IDE.

We're talking about throwing the data into a non-standard structural format that looks a lot like JSON. Well, that's fine, but again, why not just use JSON or even XML? In fact, that raises another question: how is it any better than the Game Maker XML format?

I'm not opposed to this, but it seems it's being done in a way that wastes a lot of effort for very little if any gain.
Logged
Offline (Male) Goombert
Reply #5 Posted on: March 22, 2014, 10:39:33 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
wut?

GM XML format, do you mean GMX by that? If so that is the format your project is saved in, not the format of the scripting...
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) TheExDeus
Reply #6 Posted on: March 22, 2014, 12:16:09 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
onpon, the OP idea is not about a file format. It's about a way to code the game. So it's a lot more about the compiler/parser than how data looks. If you make a compiler/parser than can turn structured JSON into .exe, then I am willing to check that out as well.
Logged
Offline (Unknown gender) Ashramaru
Reply #7 Posted on: August 29, 2014, 11:49:54 pm
Member
Joined: Mar 2014
Posts: 4

View Profile
i added new capabilities to the language. Users can include packages and classes. So users can code GML and c++ along together for more flexibility.

program test{

namespace helper{

public class move_to{

public move_to(){

}

public void set(){

}

}

}



sprite spr_1   {                 
   file: "enemy.png"
   

}

font font_1{
file: "Arial.ttf"

}



object obj_1{
depth: 5;
sprite: spr_1;


create(){
helper.move_to mt = new helper.move_to();

mt.set();

}

key_down(){
if(vk_right){


}

}

}


map map_1{
file: "maps/1.map";
place_objects: {obj_1};

}


run(){
load_map(map_1);


}




}
Logged
Offline (Unknown gender) Ashramaru
Reply #8 Posted on: September 02, 2014, 10:52:51 pm
Member
Joined: Mar 2014
Posts: 4

View Profile
a video showing the creation of a basic 3d using the software
http://youtu.be/YiYO0Hty_cw
Logged
Offline (Unknown gender) Dran768
Reply #9 Posted on: September 04, 2014, 06:02:17 pm
Member
Joined: Sep 2014
Posts: 1

View Profile
that is cool 3d android game maker  :D  is it ready for download?
Logged
Offline (Unknown gender) Ashramaru
Reply #10 Posted on: September 06, 2014, 08:06:29 pm
Member
Joined: Mar 2014
Posts: 4

View Profile
let's talk about the software here
Logged
Offline (Male) Josh @ Dreamland
Reply #11 Posted on: September 07, 2014, 04:26:13 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
Please don't create duplicate accounts for the sake of self-promotion.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1
  Print