Oh! Yep! That was it! Thank you!
Search found 8 matches
- Wed Dec 23, 2020 5:11 am
- Forum: Support and Development
- Topic: Can't move my Sprite
- Replies: 2
- Views: 2284
- Wed Dec 23, 2020 4:33 am
- Forum: Support and Development
- Topic: Can't move my Sprite
- Replies: 2
- Views: 2284
Can't move my Sprite
I've got my image uploaded into the game, and I've coded for it to move a specific direction when I press the 'w', 'a', 's' and 'd' buttons. But when I load the game, the image is not moving. Here's my code: Player = Class{} local MOVE_SPEED = 140 function Player:init(map) self.width = 16 self.heigh...
- Wed Dec 23, 2020 3:01 am
- Forum: Support and Development
- Topic: I've used setDefaultFilter but the text is still too pixelated
- Replies: 6
- Views: 3964
Re: I've used setDefaultFilter but the text is still too pixelated
It has made the text much more clearer, but a couple of letters have joined together. I don't know if it's supposed to be like that or not.slime wrote: ↑Wed Dec 23, 2020 1:21 am Using mono font hinting might help:Code: Select all
smallFont = love.graphics.newFont('HARRYP__.TTF', 25, "mono")
- Wed Dec 23, 2020 12:10 am
- Forum: Support and Development
- Topic: I've used setDefaultFilter but the text is still too pixelated
- Replies: 6
- Views: 3964
- Tue Dec 22, 2020 3:20 am
- Forum: Support and Development
- Topic: Creating a Border using Sprite Blocks
- Replies: 4
- Views: 2711
Re: Creating a Border using Sprite Blocks
Well, as I said, your map can fit up to 27 tiles on the screen horizontally. That means that in order to fit the rigtht border on the screen, mapWidth must be 27 or less. If you didn't see anything happening, then it's likely your dimensions were still out of bounds of the window. Basically, just d...
- Mon Dec 21, 2020 11:29 pm
- Forum: Support and Development
- Topic: I've used setDefaultFilter but the text is still too pixelated
- Replies: 6
- Views: 3964
I've used setDefaultFilter but the text is still too pixelated
Class = require 'class' push = require 'push' WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720 VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243 function love.load() love.window.setTitle('Maze') love.graphics.setDefaultFilter('nearest', 'nearest') smallFont = love.graphics.newFont('HARRYP__.TTF', 25) push:setupScree...
- Mon Dec 21, 2020 10:58 pm
- Forum: Support and Development
- Topic: Creating a Border using Sprite Blocks
- Replies: 4
- Views: 2711
Re: Creating a Border using Sprite Blocks
However, in your attached screenshot 27 tiles fit on the screen horizontally, while your map dimensions specify 30 tiles. So your borders at the right and bottom may go off screen, if you intend everything to fit on a single screen. That actually worked! But you mentioned about my right and bottom ...
- Mon Dec 21, 2020 5:51 am
- Forum: Support and Development
- Topic: Creating a Border using Sprite Blocks
- Replies: 4
- Views: 2711
Creating a Border using Sprite Blocks
I'm trying to make this game, and I'm starting with implementing the borders, but it's harder than I thought. However, I'm able to make a layer for the bottom part of the screen, but I don't know what to do for the other three sides. Here's what I've got so far: require 'Util' Map = Class{} TILE_BRI...