This is an old revision of the document!
After creating your sprites, you will need to move them onto lab46 and possibly onto your PI. One way of doing this is using the scp command. To use the scp command use to following format:
scp FILENAME DESTINATION:PATH
Here is an example:
scp sprites.png username@lab46.g7n.org:~/src/fall2023/discrete/mpg0
If necessary, this is how you would get the desired file onto your PI:
scp sprites.png username@raspberrypi:~/src/fall2023/discrete/mpg0
Once you have your sprites .png file on lab46 and on your PI it is now time to load them into the cartridge. To do this open your make.sh file.
Once in the make.sh file, add the following lines:
echo echo Convert the PNG textures echo -------------------------- png2vircon BreakoutTextures.png -o BreakoutTextures.vtex || abort_build
“BreakoutTextures.png” represents the name of your texture file.
After including the texture file in make.sh you also need to add it to your .xml file. To do so, open your .xml file and add the following:
<textures> <texture path="BreakoutTextures.vtex" /> </textures>
“BreakoutTextures” represents the name of your breakout texture file.
Once you have added your texture file to BOTH the make.sh and the .xml file your textures are loaded into the cartridge.