Log In  
Follow
gravitoid
Follow

Making games is my hobby.

Cart #bunrun12-0 | 2020-09-29 | Code ▽ | Embed ▽ | No License
2

This cart is still in progress. I just wanted to upload it to show a few people.
So at the moment, tapping Z will increase your run speed ever so slightly, but it returns to normal after a moment.
Later, running faster will be easier for wolves to hear, and attract their attention to you.
X is used to show the path finding grid, but path finding isn't fully implemented yet, though the methodology is commented out in the wolf state system tab in the "RESUME" state. The grid is generated each time you enter a new room, and the wolves will really only use it to investigate sounds, or to find their way back to their regular patrol paths.

Today, I got the bunny to hop, I removed moving backwards (as the down button will be reserved for throwing rocks), and I modified some of the sprites, and commented out the RESUME state.

P#82415 2020-09-29 01:41

Cart #heatmappath-2 | 2020-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
12

I just finished this method for path finding that I will implement in my other projects.
This method is resizable and really easy to implement and understand.
I spent the last day concocting this.
Essentially it creates a heat map/height map of costs that can be traversed by agents by referencing the node list.
Controls:
Press X to place walls or remove them.
Press Z to set the end node to the nearest node to the on-screen cursor.
Cursor controlled with arrow keys.

The method works this way:
Create an empty list for checked nodes. We will push nodes into and out of it. Any node inside is there only temporarily.
We start with the first node, set it to visited, and put its neighbors into the checkedNodes list.
While the length of list of checkedNodes is bigger than 0, check all neighbors of all nodes in list, and pop out nodes from list that were visited. Only new nodes get added in. Any node after checked is removed.
This creates a cascade effect that fills the entire possible connected set of nodes with costs.

To traverse it, simply find the nearest node in world space to your agent, and check the neighbors and find the one with the lowest cost, set that to your next movement target, and move to it. If you get to the end node, stop moving. If the node the agent is on has no neighbors, also don't do anything.

I made it so you can give it a grid size at the top of the code using the SIZE variable, and it will make it just work.

And there you go. Hope you like it.

P#81986 2020-09-19 10:12

Cart #kittypath-0 | 2020-09-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Slight modification of my path finding method, except this method is now modified to allow an arbitrary size grid to be instantiated. I invite you to open it up and fiddle with the code.
The agent is the cat creature, and hopefully my code is readable enough. Simply changing the SIZE variable at the top should be enough to get a feeling for different grid sizes.

P#81985 2020-09-19 09:55

Cart #watertest-0 | 2020-09-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Controls:
Z changes modes between drawing height for tiles, and simulating the water

X when pressed or released, toggles the control scheme.

In Draw mode, holding X allows you to change tile heights with the UP and DOWN arrows.
In Sim mode, you control the Log object with the arrows, but holding X allows you to change the water's base height.

The log will float up to meet the water level or fall with it. The log hasn't been programmed to interact with the tiles at the moment.
This whole thing is just a test to show how a more 2.5D feel could be achieved through using a mask to determine the height values in an image and using that to determine where to draw water.

P#81891 2020-09-16 08:29 ( Edited 2020-09-16 08:38)

Cart #bunrun-1 | 2020-05-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#76937 2020-05-20 09:11 ( Edited 2020-05-20 11:01)

P#76853 2020-05-18 19:19

Cart #zoyapiribi-0 | 2020-05-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
8

P#76420 2020-05-12 06:10

Cart #circlesss-0 | 2020-01-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#72250 2020-01-26 08:50

Cart #zuzegusofi-0 | 2019-12-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#70853 2019-12-10 18:39

Cart #gakigewiya-0 | 2019-12-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#70852 2019-12-10 18:00 ( Edited 2019-12-10 18:38)

Cart #ouijia-0 | 2019-08-15 | Code ▽ | Embed ▽ | No License
2

You can download it and use up to 8 controllers to have a ouijia board party. Try try it out. The multiplayer voting stuff doesn't seem to work in the browser.

P#66699 2019-08-15 18:25 ( Edited 2019-08-15 18:27)

Cart #bahemumizi-0 | 2019-08-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

P#66676 2019-08-14 10:00

Cart #depozewye-0 | 2019-08-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#66618 2019-08-12 18:38

Cart #wallavoid-0 | 2019-08-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#66496 2019-08-10 10:25

Cart #flipflap-1 | 2019-08-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#66493 2019-08-10 08:42

Cart #firework-0 | 2019-08-02 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#66313 2019-08-02 09:55

Cart #hihejomugo-0 | 2019-06-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

P#65037 2019-06-06 21:06

Cart #fiwayemeso-0 | 2019-03-29 | Code ▽ | Embed ▽ | No License

P#63103 2019-03-29 06:09

P#57527 2018-10-05 00:40 ( Edited 2018-10-05 04:45)

Cart #56232 | 2018-09-05 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#56233 2018-09-05 14:42 ( Edited 2018-09-06 03:12)

View Older Posts
Follow Lexaloffle:        
Generated 2020-10-29 08:08 | 0.164s | 2097k | Q:257