ghosttie on Nostr: I've been working on getting attack mode working I decided to use Symmetric ...
I've been working on getting attack mode working
I decided to use Symmetric Shadowcasting rather than Bresenham's Line algorithm (which I've used in the past) because it isn't symmetrical
Unfortunately the sample code is written in Python (which I don't speak) and the online converter I used just skipped things it didn't understand (!?) so for a while it was just wrong with no obvious reason but seems to be working now
https://www.albertford.com/shadowcasting/#gamedev #indiedev
Published at
2024-09-05 23:51:18 UTCEvent JSON
{
"id": "b96c0dee5c926d47d53e72762e0e8173026361f15932246bdef80d2d0afb56cc",
"pubkey": "45a8000eae20c1f6fea94c4b14858de6a31b5dd13605e6edfaa5c31e16504608",
"created_at": 1725580278,
"kind": 1,
"tags": [
[
"t",
"gamedev"
],
[
"t",
"indiedev"
],
[
"proxy",
"https://mastodon.gamedev.place/@ghosttie/113087629131151524",
"web"
],
[
"proxy",
"https://mastodon.gamedev.place/users/ghosttie/statuses/113087629131151524",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.gamedev.place/users/ghosttie/statuses/113087629131151524",
"pink.momostr"
],
[
"-"
]
],
"content": "I've been working on getting attack mode working\n\nI decided to use Symmetric Shadowcasting rather than Bresenham's Line algorithm (which I've used in the past) because it isn't symmetrical\n\nUnfortunately the sample code is written in Python (which I don't speak) and the online converter I used just skipped things it didn't understand (!?) so for a while it was just wrong with no obvious reason but seems to be working now\n\nhttps://www.albertford.com/shadowcasting/\n\n#gamedev #indiedev",
"sig": "dce405f8d996824ab5ee9f484b22733a2b0db2153df27b9bd125a54a90091249c34522493729a779ce199e6234e02f9ab50926bee85cf2c55e8ebcd8ffafda95"
}