- Code: Select all
Some random supposedly sax piece
https://www.youtube.com/watch?v=kxopViU98Xo&t=5s
Some random supposedly sax piece
Chrumps wrote:Are you posting exact code?
It looks you are using Coord3f instead of Coord.
Cough, auto boulder breaking, cough.
JC wrote:I'm not fully committed to being wrong on that yet.
Kandarim wrote:sc (screen coordinates) should be Coord, while rc (relative coordinates, as far as I figure) should be Coord3f, if memory serves. Not entirely positive on this.
public void addlist(Object... args) {
for(Object o : args) {
if(o == null) {
adduint8(T_NIL);
} else if(o instanceof Integer) {
adduint8(T_INT);
addint32(((Integer)o).intValue());
} else if(o instanceof String) {
adduint8(T_STR);
addstring((String)o);
} else if(o instanceof Coord) {
adduint8(T_COORD);
addcoord((Coord)o);
} else if(o instanceof byte[]) {
byte[] b = (byte[])o;
adduint8(T_BYTES);
if(b.length < 128) {
adduint8(b.length);
} else {
adduint8(0x80);
addint32(b.length);
}
addbytes(b);
} else {
throw(new RuntimeException("Cannot encode a " + o.getClass() + " as TTO"));
}
}
}
public class Gob implements Sprite.Owner, Skeleton.ModOwner, Rendered {
public Coord rc, sc;
public Coord3f getc() {
Users browsing this forum: No registered users and 3 guests