Example #1
0
                   int_to_float(0x3ea0a9fc)]

    while True:
        prng_state, noise_state = pyrite_noise(prng_state, noise_state)
        print("predicted prng_state: ", int_to_hex_str(prng_state))
        print("predicted noise_state: ", noise_state)
        input("press ENTER to continue")
    """

    seed = 0xed60636d

    lcg = LCG(seed)
    npc = NPC(lcg, float32(4.0), float32(24.0))

    for i in range(1, 60 * 60 * 2):
        npc.step()
        # create_frame(i, npc.currentX, npc.currentY)

        if i >= 368:
            print("step: ", i)
            print("prng: ", int_to_hex_str(lcg.state))
            print("destX: ", single_to_hex_str(npc.destX))
            print("destY: ", single_to_hex_str(npc.destY))
            print("speed: ", single_to_hex_str(npc.walk_speed))
            print("currentX: ", single_to_hex_str(npc.currentX))
            print("currentY: ", single_to_hex_str(npc.currentY))
            try:
                print("nextX: ", single_to_hex_str(npc.nextX))
                print("nextY: ", single_to_hex_str(npc.nextY))
            except:
                print("nextX: None")