Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

I'm trying to make a radial sight function for the enemies in my game

I want them to know if the player has entered a radius around them, and be able to control the angle of their sight according to their direction
So basically it's checking if the player has entered a sector of the radius around them, and also being able to control the percentage of the sector and its direction.

I thought about splitting the radius around them into directions, as seen in the image. I'm not sure if that's right.

I'm terrible at math so I couldn't figure this one out, I'd appreciate the help

this is the closest solution that I found, but I couldn't make it work
https://www.geeksforgeeks.org/check-whether-point-exists-circle-sector-not/

3 comments


Cart #pixel_adventure-7 | 2022-03-14 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments


Cart #wojirakewa-0 | 2022-03-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
0 comments




Cart #chill_tiyetuniwi-0 | 2022-03-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Super simple app to guide deep breathing.

1
2 comments


Cart #gidikopif-0 | 2022-03-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

this is made to my friend can bug test lol

0 comments


function _init()
f={}
end

function _update()
add(f,{y=1})
end

function _draw()
cls()
map()
print(f.y,58,58,8)
end

The print displays that that f.y is nil, could somebody please help?

1 comment




Cart #biyabowewo-0 | 2022-03-01 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Here is my work on this years "Brackey's game jam"

It was my first gamejam! I did not finish, but man i had fun.
My brain felt like mush by the end. Thanks for peeping

I might finish this someday!

0 comments


Cart #pico_char-5 | 2022-03-02 | Code ▽ | Embed ▽ | No License

1 comment


i created this icons to coming soon your users create the mod but if they don't want ok another day create the mod.

5 comments


Cart #fastitalians-0 | 2022-02-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

1
2 comments


Cart #hodegiboso-0 | 2022-02-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

0 comments


Here is a small little collab project with my friend Scratch.

This has been a fun project and i feel like i've learned a lot!

My first big(for me) pico 8 project!

I plan to add more to this project later, but for now i'm dyin to share.
<3

Cart #mowadazuti-0 | 2022-02-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

4
3 comments


I'm wondering if I could run the Pico-8 editor online. This might be done using a web-based linux emulator, possibly? If anyone has any ideas, let me know!

2
4 comments


sure are alot of colours

0 comments


Refers to 'Dank Tomb'.

Awful this.

Cart #sudaprisu-2 | 2022-02-10 | Code ▽ | Embed ▽ | No License
1

1
1 comment


Coming soon, A game based on the cancelled film by Barry Cook

It's a recreation of the film.
TBA

0 comments


Cart #pukkdogu-0 | 2022-02-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

Rescue Updog!

Special Thanks
sfx & debug support: brandonhare
production advice: stuffedwombat

1
2 comments


Cart #langtons_ant-0 | 2022-02-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2


I was bored and made a Langton's ant, after quick success, I decided to try to make it more complicated by following the more advanced rules by Greg Turk and Jim Propp. Which allows for more colors. There is also a rule editor by pressing "Z".

2
3 comments




Top    Load More Posts ->