Homebrew Need to find out the color of a pixel at a specific point for my Snake port

AsadSolos

Member
OP
Newcomer
Joined
Oct 3, 2022
Messages
5
Trophies
0
Location
Here
XP
59
Country
United States
Hi guys,
I'm making a port for snake on the 3ds for fun and I'm trying to see if there's a way to get the color of a pixel on the top screen of the 3DS at a point. Reason why is that I need to find a way to stop the game when the snake goes over itself, and the only way I can think of is having something in my main while loop that says that when the snake goes over a pixel that is green colored, the game should end. I don't really know if theres a function that can get the data of a specific pixel, and more specifically the color. If there is one, please let me know :D
 

funstuff3929

Member
Newcomer
Joined
Apr 7, 2024
Messages
14
Trophies
0
Age
24
XP
6
Country
Australia
i'm not sure if you can read the screen directly, but you could try saving the board state in a matrix. where 1 represents a snake block, and you add one to where the snake head is, and if it adds up to two, the snake hit itself.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • cearp @ cearp:
    Even sugar free isn't good, as the acid is bad enough.
  • cearp @ cearp:
    oh earlier than 15 Ken, babies, children can get decay
  • K3Nv2 @ K3Nv2:
    So dentists give. Us these caps that'll last a few years to fight thrm
  • K3Nv2 @ K3Nv2:
    Yeah but babies get a new set
  • K3Nv2 @ K3Nv2:
    Screw godfor not giving us a new adult set after we mess up
    +2
  • cearp @ cearp:
    "You listening up there big guy?"
  • BigOnYa @ BigOnYa:
    Just smoke meth, all your dental problems will go away.
    +2
  • K3Nv2 @ K3Nv2:
    Even steven
  • cearp @ cearp:
    I wonder why edibles haven't caught on for meth
  • K3Nv2 @ K3Nv2:
    Locked down from government to dispensary
  • BigOnYa @ BigOnYa:
    In India it has, can't remember what its called yuka I think, they have a crisis like we have with fentanal
  • K3Nv2 @ K3Nv2:
    That's why we need regulation :teach:
  • SylverReZ @ SylverReZ:
    @BigOnYa, Speak to Psi, he'll offer you some in Tempycoin. :tpi:
    +1
  • OGSniper @ OGSniper:
    Day after day, we drink beer, Night after night my heartbeat shows the fear
    +1
  • K3Nv2 @ K3Nv2:
    Beer can be bad for your teeth
  • OGSniper @ OGSniper:
    Teeth? What Teeth?
  • SylverReZ @ SylverReZ:
    @K3Nv2, Do crack instead. Beer is more of a depressant.
  • OGSniper @ OGSniper:
    I like taking trips without even leaving my house, if ya know what I mean.
  • K3Nv2 @ K3Nv2:
    My hygienist name is Jose I'm like fuck Juan found me
    +2
  • BigOnYa @ BigOnYa:
    Did he ask to see yo feet?
  • K3Nv2 @ K3Nv2:
    Teeth
  • K3Nv2 @ K3Nv2:
    Juan's second cousin obsessed with teeth
    +1
  • BigOnYa @ BigOnYa:
    Did you wake up with your belt un-buckled?
  • K3Nv2 @ K3Nv2:
    Let me lift you up in my chair
    K3Nv2 @ K3Nv2: Let me lift you up in my chair