Log In  
Follow
Loan Wulf
Putt-Putt
by Loan Wulf
Asteroids 2
by Loan Wulf
[ :: Read More :: ]

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!

P#145602 2024-04-03 19:24 ( Edited 2024-04-05 02:55)

[ :: Read More :: ]

Cart #shapedemo-0 | 2023-02-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

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.
That did not work either.
Finally, I came up with something radical: draw them from the inside out.
This plan had no major problems, it only took time to figure where my sines and cosines should be.
I polished some by adding outlines and voilà, here is the finished product. Hope you find it useful
and enjoyable. :)

P#125205 2023-02-02 22:36

[ :: Read More :: ]

Cart #icecapades-0 | 2022-12-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Merry Christmas!

P#122973 2022-12-25 00:39 ( Edited 2022-12-25 00:48)

[ :: Read More :: ]

Cart #putt_putt_full_version-0 | 2022-12-11 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
18

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
Special thanks: Lazy Devs, General Chaos, doc_robs, fam and friends.

P#121206 2022-11-23 01:10 ( Edited 2022-12-11 22:54)

[ :: Read More :: ]

Cart #smallmapperthingybob-2 | 2022-11-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

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.

P#120657 2022-11-14 03:53 ( Edited 2022-11-16 23:43)

[ :: Read More :: ]

Cart #asteroids2-1 | 2022-09-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
11

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
left for player 2)

Credits

Special thanks to:
Sam, Dad, Doc Robs, The Roboz, Krystman.
This game wouldn't be nearly as nice as it is without their help.

P#116953 2022-09-05 22:15

[ :: Read More :: ]

Cart #loan_simulator-1 | 2022-07-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


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:

I used the map and the tline function to create the blue background.
The paid info at the top is not bottom accurate, it is calculated by Paid_per_month*X (or time).
The line graph will have spotty changes if you move back and forth due to the difference in pixel size
versus calculation. (1.5 will round to 2 when drawing.)

P#114252 2022-07-12 21:31 ( Edited 2022-07-30 17:10)

[ :: Read More :: ]

Cart #star_trip_pics-0 | 2022-06-28 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Reuseable.

Please feel free to use these game assets.

If you do make a game, PLEASE post it here or send me a link, so I can check it out.

Happy programming!

P#113774 2022-06-28 20:23

[ :: Read More :: ]

Cart #pongbygeneralchaos-3 | 2022-05-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

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
ball's path.
Move your paddle to keep the ball away from your goal.
The first player to win 2 matches wins the game!

Behind the scenes

This is my first pico-8 game ever. I thought I'd start with a classic.
It took around 3 hours to code, most of which was fixing the collision detection.
I ended up using some workarounds, including hard coding the take-off directions.
(Edit):
Fixed the takeoff by using a dy variable instead of direction, cos and cosine
because I couldn't make it bounce correctly.
The add-ons took about another 3 hours to code.

Credits

doc_robs: Made the collision function.
Coding and art (or lack of it) by me.
Inspiration from playing the original PONG.
Thanks to Lazy Devs for tips and tricks.

Versions:

V1 Released
V2 Added "English" spin
Added cpu smart A.I.
Changed ball speed
Changed paddle speed
Changed paddle size
Changed hardness ratings
Fixed collision issue
V3 Added quickstart
Added insane hardness
Added game over noise
Added magnet mode
Added extreme logo
Added multiple ball spawn
Added additional cpu support
Added extreme mode
Added extreme magnet mode
Changed ball speed
Changed player speed
Changed menu x2
Changed cpu targeting
Fixed balldust direction
Fixed player info display

P#108302 2022-03-09 00:59 ( Edited 2022-05-17 02:08)

Follow Lexaloffle:          
Generated 2024-04-20 11:30:37 | 0.136s | Q:41