Resolved
Does anyone know of a long distance function that does not: 1. Overflow, 2. Gives pixel perfect distance, 3. Handles distances up to about 200. I have one I'm working with:
function dist(x,y,x2,y2) local opp=x-x2 local adj=y-y2 return opp/cos(-atan2(opp,adj)) end |
However, it has weird instances where it throws up its hands and gives crazy numbers.
Thanks so much for the help!



Helloooo everyone!
I made this cart because I am positive someone out there desperately needs it.
Ok, so I just made it for fun, but surely you would too.
I left some notes on how to use it, but you may have some work ahead if you want to decipher my code.
The making
I first envisioned a shape platformer game. That never happened. Anyhoo, I had envisioned a game
and I needed a simple and easy way to draw believable polygons. First, I looked around to see if
anyone else had done it before. I found one or two, but I did not like them enough.
My plan was simple:
I would draw the shapes one line at a time, top to bottom.
After some trial runs, I ended up scrapping it. Next, I dabbled with the idea of vertical lines.
Putt-Putt
Sit back, relax, and knock that ball into the hole!
Which hole is your favorite? How many hole-in-ones can you get?
Downloadable version at Itch.io.
Behind the scenes
This is my first full on game. All my others have just been remakes.
The physics were quite easy. Friction and collide, that's it. However, designing 48 unique levels
was very time-consuming, if you liked them, please leave a star, maybe a comment. Thanks!
This is also the first game I have uploaded to Itch.io.
Credits:
Coding --- Loanwulfious(me)
Music --- @Packbats, adapted by Loanwulfious
Art, Cover --- Loanwulfious, inspired by @zep





Resolved
Help!
I recently made this little function to show the map at any size.
However, I am not satisfied with it. It does not represent decimal sizes properly,
(those weird breaks in between) it does not show any width/height except 16/16.
Also, looking back over my code, I am pretty sure it could be done better.
Any help or suggestions welcome.





Attention!
Pilots needed urgently!
The star Mimiar imploded, and shattered a dwarf planet that was orbiting it.
Ginormous asteroids are now hurtling towards Thrawn, the home of millions of unsuspecting people.
We must destroy the asteroids before it is too late!
Buttons
X – Use power up.
Z – Build energy, release to fire.
Arrow keys – Movement.
How to play
Steer your ship across the screen, making sure to dodge the asteroids. Tap Z to fire a small bullet or
press and hold to build up energy. Collect the power ups that float across the screen, because they can
be very helpful. Press X to use them.
Your ship's energy meter is displayed in the top left corner. (Bottom

In keeping with my name, I have created a loan simulator. It's nothing fancy, although, I did add
some bells and whistles.
It can handle $120 owed, $120 paid per month, and, interest rates from 100-200%.
Buttons:
X - Move time forward.
O - Move time backward.
Up - Change menu items.
Down - Bring down menu/Change menu items.
Left - Move time forward/Change menu items.
Right - Move time backward/Change menu items.
Behind the scenes:
Take away everything else and this is just a mathematical function f(x)=(Owed-Paid_per_month)*interest.
X grows or shrinks every loop and the result is drawn to the screen.
Programming notes:


Ever wondered what it would be like if pong went to the next level?
I think I may have found the answer. Try it out and tell me what you think.
Special thanks to dw817 for play-testing.
Note: Feels WAY better in full screen.



Controls
P1:
Use Z or X to accept/continue/etc.
Up and down arrows to move/select.
Left and right arrows to select difficulty. (Only at menu)
P2:
Use up and down arrows to move.
Rules
Try to get the ball past your opponent to score a goal(edge of screen) by moving your paddle into the

