pwiter wrote:
MathWizz wrote:
pwiter wrote:
So, drawing sprites works, if there is more than 1 sprite. Something wrong with for loop? I'm fixing it. Will commit if I do.
EDIT: GAHH! Seg Faults! From a <=?
|
\/
for (uint32_t i = 0; i <= this->spriteCount; i++) {
this->sprites[i]->drawOn(cr);
}Use '<' instead of '<='.
But that is why It doesn't draw all sprites...
Actually no, my fail knowledge of C++. Java is what I'm coming from.
C++ and Java for loop are the same.
Offline
amcerbu wrote:
I don't know if it's just me, but the whole ...
if (condition) {
statement;
}
... Java bracket convention really bothers me. I like to stick with good old C++:
if (condition)
{
statement;
}
I've switched between habits so many times, and FINALLY I've stuck with one. Now you want me to change it.
Offline
if (condition) {
is good syntax
}
Offline
amcerbu wrote:
I don't know if it's just me, but the whole ...
if (condition) {
statement;
}
... Java bracket convention really bothers me. I like to stick with good old C++:
if (condition)
{
statement;
}
they both work and are used in both languages by different people
it's just a matter of preference
Offline
jji7skyline wrote:
if (condition) {
is good syntax
}
This one looks prettier.
Offline
I found our gh-pages! it's at http://itchyplusplus.github.com/ItchyPlusPlus/
feel free to edit as you wish!
Offline
TRocket wrote:
pwiter wrote:
blob8108 wrote:
This one looks prettier.Agreed.
+1
+2.71
+3.14159286589
(both from memory)
Offline
I have commited an update to scratchio.h, which doesn't include endian.h for mac, and insteads embeds a copy of endian.h. (for cross-platform reasons).
Offline
Good idea
Offline
I do I did it in FireMMO.
Offline
It doesn't come with standard c++, but the Apis included in windows and posix are fairly easy to understand if you put some time into it.
Offline
Turned out to be a prob with my graphics card not itchy.
Offline
bobbybee wrote:
Turned out to be a prob with my graphics card not itchy.
Did you get it fixed, or is it still a problem?
Offline