# Wanting to load images/sprites onto tiles from a txt file 0=grass, 1=track, 2=start finish

**URL:** <https://discourse.processing.org/t/wanting-to-load-images-sprites-onto-tiles-from-a-txt-file-0-grass-1-track-2-start-finish/23909>\
**Category:** Coding Questions\
**Created:** [September 17, 2020, 1:22am UTC](https://discourse.processing.org/t/wanting-to-load-images-sprites-onto-tiles-from-a-txt-file-0-grass-1-track-2-start-finish/23909 "2020-09-17T01:22:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChipperActual](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chipperactual/32/10614_2.png) [@ChipperActual](https://discourse.processing.org/u/ChipperActual)\
**Post date:** [September 17, 2020, 1:22am UTC](https://discourse.processing.org/t/wanting-to-load-images-sprites-onto-tiles-from-a-txt-file-0-grass-1-track-2-start-finish/23909/1 "2020-09-17T01:22:16Z")

</div>

Hey All  
I am wanting to load images/sprites onto tiles from a txt file 0=grass, 1=track, 2=start finish, i have managed to read from the text file (shown in preview)  
Stuck on how to draw the tiles/images/sprites to the canvas?  
splitTokens i believe is the way to go, just very confused.  
any assistance will be greatly appreciated, thank you

 ![Screen Shot 2020-09-17 at 11.18.55 am](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b2426f1953cd581bfdbaead78409a762ed3e6fa0.png)
