Search found 4 matches

by RamblinLane
Fri Jun 03, 2022 7:45 pm
Forum: Support and Development
Topic: Display whole map at end of game
Replies: 3
Views: 1432

Re: Display whole map at end of game

Thanks milon will give it a try
by RamblinLane
Fri Jun 03, 2022 5:31 pm
Forum: Support and Development
Topic: Display whole map at end of game
Replies: 3
Views: 1432

Re: Display whole map at end of game

Figured it out Draw full screen outside the camera still want to figure out how to centre the image function love.draw() if gameOver then love.graphics.scale( math.min(screen.h / screen.mapH, screen.w / screen.mapW ) ) gameMap:drawLayer(gameMap.layers["Ground"]) gameMap:drawLayer(gameMap.l...
by RamblinLane
Fri Jun 03, 2022 3:23 pm
Forum: Support and Development
Topic: Get Width and Height of STI (Simple Tiled Implementation) map
Replies: 2
Views: 4088

Re: Get Width and Height of STI (Simple Tiled Implementation) map

gameMap = sti('maps/testMap.lua')

mapW = gameMap.width * gameMap.tilewidth
mapH = gameMap.height * gameMap.tileheight
by RamblinLane
Fri Jun 03, 2022 3:05 pm
Forum: Support and Development
Topic: Display whole map at end of game
Replies: 3
Views: 1432

Display whole map at end of game

Hi I followed the Callacades tutorial on Love2d Basics (https://youtube.com/playlist?list=PLqPLyUreLV8DrLcLvQQ64Uz_h_JGLgGg2) I added some coins to collect and each disappear as collected. At the end of the game I want to zoom out to show the whole map. Map is created in Tiled with 2 Layers gameMap ...