This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 »
976
Issues Help Desk / Re: Seg Fault once LGM opens ENIGMA
« on: September 22, 2012, 02:51:31 pm »
I have committed a fix to JDI which remedies a couple memory issues (the only two I could detect in parsing every header I could think of).
If it still has a problem, I'm not sure what to try next.
If it still has a problem, I'm not sure what to try next.
977
Proposals / Re: Arrays
« on: September 16, 2012, 09:08:58 am »
If we allow arbitrary element access by using an array as an array subscript, and we let 1..5 be the same as [1, 2, 3, 4, 5] (and maybe let 1..2..9 be [1,3,5,7,9]), then that will work.
978
Proposals / Re: Arrays
« on: September 15, 2012, 02:45:55 pm »
Unfortunately, GML ambiguates [1,2]. It means the same as [1][2]. Otherwise we could do all sorts of neat array tricks.
Perhaps array[[1,2]] could work.
Perhaps array[[1,2]] could work.
979
Proposals / Re: Arrays
« on: September 15, 2012, 11:34:44 am »
Agreed with HaRRi, again. Zero seems like an elegant solution.
I'd just make them use array subscripts, except it may not always be the case that the function returns an array of only two elements. It may return five, and the user needs only four.
I'd just make them use array subscripts, except it may not always be the case that the function returns an array of only two elements. It may return five, and the user needs only four.
980
Proposals / Re: Arrays
« on: September 14, 2012, 09:02:06 am »
I was just going on about how that'd be fine. All I really need is to make sure JDI includes the & in variable types it coerces, then I can ask JDI for the type of ENIGMA's AST.
981
Proposals / Re: Arrays
« on: September 13, 2012, 11:38:06 pm »
I don't want to use ?, since ? is ternary. [snip=EDL](boolean_expression ? x : y) = 10;[/snip] is already valid EDL. It will remain so in the arrays, I imagine. I do like your [snip]...[/snip] to denote that the array may be larger. However, I like HaRRi's 0 idea better than __unused.
Perhaps as a prefix, ? could denote optionality.
[snip=EDL][0, x, y, ?z] = get_wxyz();[/snip]
Perhaps as a prefix, ? could denote optionality.
[snip=EDL][0, x, y, ?z] = get_wxyz();[/snip]
982
Proposals / Re: Static Sprites
« on: September 13, 2012, 04:33:04 pm »
Right. For that reason, the tile system and static sprite system would remain separate; I was just suggesting we lump them together in the UI for simplicity's sake.
I would calculate the max view dimensions, W and H, and divide the tiles into W×H blocks as GL lists/VBOs (VBOs in the new GL system). This way, you draw at most four at a time.
I would calculate the max view dimensions, W and H, and divide the tiles into W×H blocks as GL lists/VBOs (VBOs in the new GL system). This way, you draw at most four at a time.
983
Proposals / Re: Sprite sheets
« on: September 13, 2012, 04:30:56 pm »
Duly noted. The autopacker is coded and done with; we'll just reuse the one used to pack font glyphs.
Another benefit to a resource that I did not list earlier: An option can be given to separate sprite images by M pixels and dilate sprite edges by N pixels. (In addition to other benefits which may stem from having the map in front of you in a UI)
Another benefit to a resource that I did not list earlier: An option can be given to separate sprite images by M pixels and dilate sprite edges by N pixels. (In addition to other benefits which may stem from having the map in front of you in a UI)
984
Proposals / Re: Sprite sheets
« on: September 13, 2012, 04:08:06 pm »
The major points to having a resource for it would be
1) To allow the user to have a say in the placement within the texture map
2) To allow the user to fetch the texID of the texture map
3) To solidify the concept to something more precise than a page number
4) To demonstrate to the user how much space is wasted
1) To allow the user to have a say in the placement within the texture map
2) To allow the user to fetch the texID of the texture map
3) To solidify the concept to something more precise than a page number
4) To demonstrate to the user how much space is wasted
985
Proposals / Re: Arrays
« on: September 13, 2012, 04:04:34 pm »
[snip=edl]y = get_some_coordinates()[2][/snip].
But I see the point you're trying to make. I guess we can allow using zero or maybe the null keyword to indicate that you don't want the field; otherwise, you'd do something like this:
But I see the point you're trying to make. I guess we can allow using zero or maybe the null keyword to indicate that you don't want the field; otherwise, you'd do something like this:
Code: (edl) [Select]
int discard;
[discard,y] = get_some_coordinates();
986
Proposals / Re: Arrays
« on: September 13, 2012, 03:55:20 pm »
No, that would throw a syntax error to the tune of "Assignment array elements must be variables."
987
Proposals / Re: Sprite sheets
« on: September 13, 2012, 03:53:12 pm »
What appears in the dropdown list?
988
Proposals / Re: Reintroduction of build mode
« on: September 13, 2012, 03:26:01 pm »
For all I know, it's already out, and you just haven't updated.
989
Proposals / Re: Reintroduction of build mode
« on: September 13, 2012, 03:12:06 pm »
I'm not hacking together a program to fix a mistake that shouldn't (and soon won't) exist.
990
Proposals / Re: Arrays
« on: September 13, 2012, 03:11:02 pm »
What would you have [] = scalar do?
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 »