Log In  
Follow
Remagamer
Follow

Professional slacker, wannabe game dev
Hello! I stream games/gamedev. You can find me at http://twitch.tv/remagamer, or https://www.youtube.com/channel/UCSr5jOhUbWxHBMTw2Gmd1AQ/

Hey, everyone! So I am NOT good at math. It's something that I usually figure out once through trial and error and try not to touch ever again. So I'm turning to the more mathematically capable among us to help me decide on something: should I use a new method of determining the distance between two x/y coordinates?

Here's what I've been using up to this point:

function dist(x,y,x2,y2)
 --gets the distance between
 --two points. faster than
 --the previous version.
 local dx, dy = x - x2, y - y2
 local res=(dx * dx + dy * dy)
 if res<0 then
  res=32767
 end
 return res
end

This is the best I could figure out, and I'm sure it can be improved. It overflows, despite my best efforts to prevent it, but it was passable as long as I worked within its limitations.

Here's what I'm thinking might work better:

function xdist(x,x2)
 --gets the distance between
 --two coordinates.
 return abs(x-x2)
end

In theory, this has no complicated math, and could be used to build another function with the same purpose as the original, even though this only works with two. But here's my question: is it faster? Is the math right?

I appreciate any advice and help given! This forum has been invaluable to me.

P#70392 2019-11-30 05:42 ( Edited 2019-11-30 05:43)

Are there any examples in the BBS of a cart faking a game crash as part of the game? IE printing out a false error message? I was thinking about this and wondered if anybody had done it.

P#67370 2019-09-07 19:08

Cart #hozatewiba-0 | 2019-08-01 | Code ▽ | Embed ▽ | No License
7

A work in progress game I'm uploading for the sake of feedback. It's quite unfinished, and ends at the first planned boss (not actually implemented yet, sadly.)

Arrow Keys to move/jump
Z to use selected weapon
X to change selected weapon

Please let me know what you think.

P#66268 2019-08-01 01:25

Cart #yisawuyeri-0 | 2019-07-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A mario game. watch him bounce

Code by me, art by Sockfoot

P#65509 2019-07-01 19:51

How would you guys introduce someone to Pico-8? I guess I'm really asking two things here...how would you introduce someone to the playing side of Pico-8, or the making side of Pico-8? I've been thinking about it but it's kinda hard to explain the concept and appeal sometimes.

P#65271 2019-06-18 23:59

Dungeon Layout Generator

Cart #yositimosa-1 | 2019-05-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Cart #yositimosa-0 | 2019-05-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Description

A generator based on this cart by @johanp. It uses a similar idea to place rooms, but is much more simplistic (I prefer to try and figure things out on my own before I dig into other people's code.) This particular version continuously generates new dungeons while running. Feel free to reuse this if you like.

Changelog

5/18/19
+Added some statistics about generators.
+Fixed some issues with rooms becoming isolated (I think)
+Randomized the variables rooms are generated with every loop to better showcase the generator.

P#64462 2019-05-16 19:44 ( Edited 2019-05-19 02:01)

Cart #fitegugiku-0 | 2019-05-16 | Code ▽ | Embed ▽ | No License

A dungeon generator that I cobbled together, loosely following the methods described here. Please forgive my trash code. It's somewhat variable, but has an issue with mazes not being entirely connected together. I was hoping I could get some advice on how to fix that by uploading here. Feel free to use this for your own projects, if you want.

P#64461 2019-05-16 17:45 ( Edited 2019-05-16 17:46)

Cart #sudutaguga-1 | 2019-05-11 | Code ▽ | Embed ▽ | No License
1

It's a neat little title screen with a short musical loop and music jingle. Might end up being part of a new project, might not! I had fun making it, at any rate.

P#64317 2019-05-11 03:43

Surrealist Garden

Cart #dubonekemi-0 | 2019-04-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Description

This is a quick little experiment whipped up in about two hours. It's janky and the code is bad (I got lazy) but even though it didn't turn out like I wanted, I think it's still pretty fun to look at. Enjoy!

P#63649 2019-04-18 18:43

Cart #pederinuhe-0 | 2019-03-07 | Code ▽ | Embed ▽ | No License
2

Bingus Finder

Gold Edition

Disclaimer: This is a trash game made for the joy of making, much in the same vein as Bert: Get That Sports! So don't play it if you're looking for a real game, and also maybe don't play it if you have epilepsy problems. I dunno.

[8x8]
Help Bingo find the bingus! Headache guaranteed or your money back! Joy! Sorrow! Catharsis! The Judgement Dimension TM!
[8x8]

Many thanks to Qbicfeet for the great sine shift effects. Please go look at his stuff.
[8x8]

Of course, a great thanks to Sicklez who created the inspiration for this nonsense, SCRIMMY BINGUS FAMILY EDITION. It's a great game.
[8x8]

And thank you, for subjecting yourself to this.

P#62660 2019-03-07 18:06

Cart #nugemuretu-5 | 2019-02-15 | Code ▽ | Embed ▽ | No License
2

A lot of stuff, but mostly background. I'm trying some new stuff with entity processing.

Cart #nugemuretu-4 | 2019-02-12 | Code ▽ | Embed ▽ | No License
2

UI improvements. Hold the down key to access items.

Cart #nugemuretu-2 | 2019-02-12 | Code ▽ | Embed ▽ | No License
2

Generation improvements and visualization.

Cart #nugemuretu-1 | 2019-02-12 | Code ▽ | Embed ▽ | No License
2

Something interesting, hopefully.

P#61794 2019-02-12 00:38 ( Edited 2019-02-15 03:55)

Cart #rupiwpge-0 | 2019-02-02 | Code ▽ | Embed ▽ | No License
4

This is a work in progress randomly generated marble game. I have to shout out Eggnog, who made the excellent game PicoPutt. You should go play that, this game is only possible because of his excellent collision methods, and it's not nearly as good.

P#61457 2019-02-02 06:26

Cart #wekamasahe-0 | 2019-01-29 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

A tiny musical loop. While it's not particularly pleasant to listen to, I think making it helped me learn a lot about how Pico-8 music works.

P#61321 2019-01-29 05:01

Cart #maw-0 | 2019-01-16 | Code ▽ | Embed ▽ | No License
3

Based on a dream I had when I was a kid. Walk left.

P#60872 2019-01-16 04:14

Cart #58426 | 2018-10-25 | Code ▽ | Embed ▽ | No License

Trying out an idea.

Cart #58425 | 2018-10-25 | Code ▽ | Embed ▽ | No License

Well, I stand corrected. If you only process the necessary parts of the screen and fake the rest, you can get the effect to take up much less CPU.

Cart #58422 | 2018-10-25 | Code ▽ | Embed ▽ | No License

I was reading the Dank Tombs articles by Krajzeg and decided to see how far I could get with what I know. I cheated and used a smaller screenspace at 30fps, but not even that could save me from CPU overload...I want to get this effect running well enough that a game could be played using it, but I think at some point to go any farther I'll need to delve into more complicated things than what I'm doing.

P#58424 2018-10-25 17:22 ( Edited 2018-10-26 07:24)

Cart #58361 | 2018-10-24 | Code ▽ | Embed ▽ | No License
1

Two Minutes To Sunset
You have a city full of people to evacuate and only two minutes to do it before the sun sets and zombies swarm you. Use your helicopter to evacuate the civilians and hold off the zombies with soldiers, snipers, barricades and missile strikes. Play with either a mouse or the standard controls, whichever suits you best! Enjoy RTS-esque gameplay in Campaign, Free Play and Siege modes, with 8+ maps to battle across. Also, George Washington is there!

Controls
This game can be played with a mouse, or with the standard Pico-8 controls. When using Pico-8 controls, the D-Pad moves the cursor, O left clicks and X right clicks. Left click to interact and place things, Right click to clear whatever you're interacting with.

Version

The current version is 1.0 and features the following:

+release

Previous versions can be found Here.

P#58363 2018-10-24 15:14 ( Edited 2018-10-25 07:09)

Cart #57837 | 2018-10-11 | Code ▽ | Embed ▽ | No License

Just a quick cart based on something I drew.

P#57838 2018-10-11 11:53 ( Edited 2018-10-11 16:22)

Cart #58364 | 2018-10-24 | Code ▽ | Embed ▽ | No License
3

It's been a while! Here's the release version. I think it's pretty reasonable. I didn't manage to implement bucket sorting, but if I revisit the concept that's something I want to tackle.

+release

Cart #57626 | 2018-10-07 | Code ▽ | Embed ▽ | No License
3

All of the buttons are now functional....I think I am going to call this game Pico Zombie Smasher. I tried to wrap my head around the bucket sorting thing, but it's beyond me...for now.

Ninja-edit: There are some bugs that have cropped up as a result of the new Dist()...but I hope to squash them given time.

Cart #57620 | 2018-10-06 | Code ▽ | Embed ▽ | No License
3

I used Fred72's advice for distance checking (thanks for the help, Pico-8 Discord!!) and received a significant performance boost! I can fit more entities onscreen at any given time, now. The bucket sorting thing (I think that's what it is) is another beast entirely...hopefully I can implement that as well.

Cart #57532 | 2018-10-05 | Code ▽ | Embed ▽ | No License
3

At this point, I feel like this is pretty obviously a loose demake of Atom Zombie Smasher...so I may do a play off of that for the final name. The gameplay in this version is nice, I feel like. It will probably be better once I implement fred72's advice.

Cart #57519 | 2018-10-04 | Code ▽ | Embed ▽ | No License
3

Now you can set down a signal, post soldiers and create barricades. I'm quite pleased with how this is looking, even if the entity counts are lower than I would've hoped.

Cart #57485 | 2018-10-03 | Code ▽ | Embed ▽ | No License
3

This is a neat little zombie apocalypse sim thing. I think I'm going to try and make it into a proper game.

P#57486 2018-10-03 15:11 ( Edited 2018-10-24 19:19)

Cart #57431 | 2018-10-03 | Code ▽ | Embed ▽ | No License
4

Ninja Edit: 4.1 release because I accidentally left in some stuff from testing that made the only event that ever occurred Orbital Strike.

I've hit the token limit, so this seems to be as far as I go, unfortunately. I think it's pretty nice, and dw817's image compression code is to thank for the title screen (thank you!). I may try to optimize this a bit before I release it for real, with the proper title image, since I'd like to add more.

Cart #57185 | 2018-09-27 | Code ▽ | Embed ▽ | No License
4

Honestly, I don't even know what to put here. General polish and improvement?

Cart #57099 | 2018-09-25 | Code ▽ | Embed ▽ | No License
4

A new enemy type, power ups, and Parallax scrolling background effects. Good stuff.

Cart #57041 | 2018-09-24 | Code ▽ | Embed ▽ | No License
4

You can now run AND gun, as the title implies you would be able to. There's a proper menu for multiplayer now, and the game weights different enemies differently (it can spawn 2 wasps for the price of 1 zombie, for instance) and there's just generally a lot of improvements. I swapped the O and X keys because at least on my keyconfig, it felt more natural this way.

Cart #56947 | 2018-09-20 | Code ▽ | Embed ▽ | No License
4

It's a run-n-gun type game with support for 4-player coop. Pretty rough right now, but playable enough that I thought it'd be worth getting feedback on.

Controls are:
D-Keys to move/aim
O to jump
X to shoot

Use the menu (Enter) to add additional players (more than 4 is allowed, but not officially supported), enable debug statistics and freeze the game for preview images.

P#56948 2018-09-20 18:35 ( Edited 2018-10-03 02:16)

Cart #56517 | 2018-09-11 | Code ▽ | Embed ▽ | No License

This is a game I made for the fun of making it. It's bad and short. It's about Bert Sampson getting his sports.

Good luck figuring it out.

A big thank you to Lenstar Productions for their inspiring game, Bart Bash.

P#56518 2018-09-11 02:51 ( Edited 2018-09-11 18:16)

View Older Posts
Follow Lexaloffle:        
Generated 2019-12-05 23:18 | 0.166s | 4194k | Q:356