Closed H4CKL0RD closed 4 years ago
this is also a pic of my code
push = require 'push'
WINDOW_WIDTH = 1280 WINDOW_HEIGHT = 720
VIRTUAL_WIDTH = 432 VIRTUAL_HEIGHT = 243
function love.load () love.graphics.setDefaultFilter('nearest', 'nearest') smallFont = love.graphics.newFont('font.TTF', 8) love.graphics.setFont(smallFont) push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, { fullscreen = false, resizable = false, vsync = true, }) end
function love.keypressed(key) if key == 'escape' then love.event.quit() end end
function love.draw() push:apply('start') love.graphics.clear(40, 45, 52, 255) love.graphics.printf('Hello Pong!', 0, 20, VIRTUAL_WIDTH, 'center') love.graphics.rectangle('fill', 10, 30, 5, 20) love.graphics.rectangle('fill', VIRTUAL_WIDTH - 10, VIRTUAL_HEIGHT - 50, 5, 20) love.graphics.rectangle('fill', VIRTUAL_WIDTH / 2 - 2, VIRTUAL_HEIGHT / 2 - 2, 4, 4) push:apply('end') end
so pls help thanks
so pls help thanks
font.zip replace your font file with this one and your replace your font code with this " smallFont = love.graphics.newFont('font.ttf', 8)"
i hope it helps
Thx i figured it out before you commented but couldn't find the file so thx for the font
@H4CKL0RD is this Steven? I've been looking for you. Hit me up! http://networkdls.com/Page/View/Official/Make_Contact
So i was working on pong 2 and i couldn't find the correct font file so i chose one that I liked and i got this error