Recent Posts

Pages: [1] 2 3 ... 10
1
Programming Help / Re: How to access arrays stored in a ds_list ?
« Last post by Goombert on June 16, 2019, 05:29:34 PM »
Just going to make a note here for everybody else. We got this mostly squared away.

He contributed the array_set function which I've approved.
https://github.com/enigma-dev/enigma-dev/commit/ed696c743a117d9648353268cff6b2dac5fbb842

We still have some things to work out with var arrays and accessors though.
https://github.com/enigma-dev/enigma-dev/issues/1751
2
Programming Help / Re: How to access arrays stored in a ds_list ?
« Last post by Dragonite on June 16, 2019, 12:38:32 PM »
I put the following in the create event:
Code: [Select]
var arr[3];// = array_create(3);
arr[2] = 52;
arr[1] = 4;
arr[0] = 16
list = ds_list_create();
ds_list_add(list, arr);

Then, the following in the Step Event:
Code: [Select]
var t = ds_list_find_value(list, 0);
if (is_array(t))
{
show_message("t is an array.");
for (var i = 0; i < array_length_1d(t); ++i)
show_debug_message(string(t[i]));
}
else
show_message("t is not an array,");
game_end();

The output is that "t is not an array".

Edit: just re-read the thread, so ds_list_find_value isn't implemented yet?
3
General ENIGMA / Re: Enigma Games Showcase 2019
« Last post by Transitive Property on June 15, 2019, 11:26:57 PM »
Enigma is great for creating games. It's faster than Gamemaker's compiler. Its interface is well designed and intuitive. Best of all, 85% of your Gamemaker projects will be compatible with it.

So true - and I had to emphasise it using red letters and big fonts because this is critical :D

lel
4
Works in Progress / Re: Sokoban clone for Enigma
« Last post by Goombert on June 15, 2019, 01:11:06 PM »
Holy cow hugar, you are on fire making games. This one too looks like fun! Yeah i'm still planning on setting aside some time to play your new games.

PS: What's up with the broken formatting of the size BBCode in your post? I think the version of Simple Machines Forums (SMF) we have installed doesn't support percentages. I would Google "SMF BBCode font size" or maybe try using the UI button to set the font size of that link.
5
Programming Help / Re: How to access arrays stored in a ds_list ?
« Last post by Goombert on June 15, 2019, 01:05:39 PM »
That's correct, yeah, what's it doing in ENIGMA? I understood you, you want to store the reference/pointer to the var array inside the ds list.
6
Issues Help Desk / Re: Error implementing struct
« Last post by Goombert on June 15, 2019, 01:04:05 PM »
Yeah, I recently had the chance to try GMEdit, it's pretty cool, I recommend too.
7
General ENIGMA / Re: Roadmap?
« Last post by Goombert on June 15, 2019, 12:55:38 PM »
Quote from: Dragonite
Okay, cool. Is it ok to report here if I find more pages with outdated information?
Sure, you can say so here, or Discord, or IRC, or wherever you prefer. I can also say that since you already have a forum account, you already have a Wiki account, so you are actually free to update content as you see fit. I just have to mention here that I must ask that you please consider copyright before uploading content to our servers. I've really only had one problem with somebody uploading copyright stuff in the past like 6 years~ I've been here, so it's not a big issue. Just make sure you either have the rights or the permission of the author to use any content you try to upload. Use your own original work rather than using somebody else's in general.

Quote from: Dragonite
Yeah, these days the normal build mode compiles your project into bytecode and it runs it inside a VM. It's much faster than GM8.1, but much slower than YYC.
Right, I haven't dived too much into this part of the engineering problem here. I mean, ENIGMA and GM are both software to solve an engineering problem, RAD game development. You may be interested in speaking sometime to Josh or Rusky or other individuals who are more knowledgeable in this domain. There's actually something funny if I recall about YoYo's use of LLVM, in other words, it's not using LLVM to the fullest. For example, it still uses Clang to link or something like that. Actually, I'll share this post with one of these people and maybe they'll explain it better than me.

For example, I mean the lack of execute_string and other dynamic programming language features.
8
Works in Progress / Sokoban clone for Enigma
« Last post by hpg678 on June 14, 2019, 08:48:03 PM »
i am in the process of doing a Sokoban clone as another of my tutorial projects as well as a full game.


The full game will have a 'Select Level' screen utilizing one of my previous projects ......[size=78%]https://enigma-dev.org/edc/games.php?game=88[/size]


However, this will be slightly different. A thumbnail will represent each level which, makes coding for me easier to do. This involves taking a screenshot of each level, cropping it to a custom size of 96X96 pixels as a sprite, then simply duplicating that object and changing its sprite_index and room_index.






10
Programming Help / Re: How to access arrays stored in a ds_list ?
« Last post by Dragonite on June 13, 2019, 09:56:08 PM »
Goombert, isn't the code below supposed to work?
Code: [Select]
var arr = array_create(3);
arr[2] = 52;
arr[1] = 4;
arr[0] = 16
list = ds_list_create();
ds_list_add(list, arr);
In GM, you should be able to get back the array using ds_list_find_value(list, 0) whether it was called with var or not.
Pages: [1] 2 3 ... 10