Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] Y-based sprite rendering!
#22
Replace:

Code:
' Blit out players and NPCs
            For Y = 0 To MAX_MAPY
                For i = 1 To PlayersOnMapHighIndex
                    If Player(i).Y = Y Then
                        Call BltPlayer(PlayersOnMap(i))
                    End If
                Next
                For i = 1 To High_Npc_Index
                    If MapNpc(i).Y = Y Then
                        Call BltNpc(i)
                    End If
                Next
            Next

With:

Code:
' Blit out players and NPCs
            For Y = 0 To MAX_MAPY
                For i = 1 To PlayersOnMapHighIndex
                    If Player(i).Y = Y Then
                        Call BltPlayer(PlayersOnMap(i))
                    End If
                Next
                For i = 1 To MAX_MAP_NPCS
                    If MapNpc(i).Y = Y Then
                        Call BltNpc(i)
                    End If
                Next
            Next
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)