Search found 2 matches

by TheGuardian163
Sat Jul 14, 2018 9:42 pm
Forum: Support and Development
Topic: Reading a text file with raw data (no common format)
Replies: 1
Views: 1314

Reading a text file with raw data (no common format)

I made a level editor in another engine that exports a .txt file with just integers in it. Then a space, then the next number is on the next line. Like this: NSLNSLNS N is a number, S is a space, L is a linebreak. The files look like this: 6 2 8 I've read through this multiple times: https://love2d....
by TheGuardian163
Fri Dec 11, 2015 9:47 pm
Forum: Libraries and Tools
Topic: Player Movement - Pythagorean formula - 8 directions
Replies: 4
Views: 15743

Player Movement - Pythagorean formula - 8 directions

I was following a space invaders tutorial on youtube (just started learning Lua) and deciding to play around instead of following it You can move in 8 different directions using the arrow keys, you can sprint using the Z key and shoot using the X key (only upwards) I used pythagorean formula to get ...