So hello folks, I started a roguelike and the problem is that;
for (Iterator cit = crs.iterator(); cit.hasNext(); ) {
Character chr = (Character) cit.next();
if (chr instanceof Door && inr(x, y, chr.x, chr.y)) {
if (chr.cld) chr.cld = !chr.cld;
else if (!chr.cld) chr.cld = !chr.cld;
}
}
Returns me the error chr.cld cannot be resolved or is not a field, I wonder if it's due to the fact that Door class extends Character class and has a boolean called cld but the Character does not
I was working on my platformer again and made some progress, I wanted to share it with some of my friends however when I tried to export the jar wouldn't work
I thought it was due to just exporting so I used Export to application and tried to use the exe, no luck
I'm not using any libraries and can share source if needed