Comments (7)
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
from pong.
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
from pong.
so pls help thanks
from pong.
so pls help thanks
from pong.
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
from pong.
Thx i figured it out before you commented but couldn't find the file so thx for the font
from pong.
@H4CKL0RD is this Steven? I've been looking for you. Hit me up!
http://networkdls.com/Page/View/Official/Make_Contact
from pong.
Related Issues (20)
- Cannot load game due to location. HOT 5
- window size pong 2 onwards 11.3 HOT 2
- Code is not working on Visual Studio code HOT 10
- Problems in Pong7 HOT 1
- Links in the CS50 page is obsolete
- I am not able to see part of the screen HOT 1
- pong-1 issue with love 11.3 HOT 1
- Push library issue for both love 11.1 and 11.3
- setColour in displayFPS() does not work right HOT 1
- Support keypad in Linux
- Pong 3 Paddles not moving HOT 1
- SetColor not working as demonstrated HOT 2
- Pong 2 HOT 1
- pong
- work 1
- Better ball velocity in `Ball.lua` class HOT 1
- A
- pong5 paddle render issue
- pong 1 issue boot.lua no code to run for Mac users HOT 1
- Pong take one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pong.