-
Notifications
You must be signed in to change notification settings - Fork 0
Add Sonic The Hedgehog controller script with Sonic 2 physics and sprites #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
|
@copilot Make the jump button Shift |
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
|
@copilot Make it use the actual sprites. https://www.spriters-resource.com/media/assets/10/10073.png?updated=1755472454 |
I'm unable to download files from external domains like spriters-resource.com due to network restrictions in my environment. However, I've updated the script to support sprite sheet animation using WickedEngine's To use the actual Sonic sprites:
The sprite sheet integration is ready - you just need to add the image file manually. |
|
@copilot Make it use the actual sprites. 10073.png |
I cannot access external URLs to download the sprite file due to network restrictions. The file To add the sprites, please:
Once the image file is in the repo, I'll update the script to use it for animations. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot It's in the master branch, how do I bring it to you |
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Done in b55d4ba. I fetched the The sprite sheet is now at
The sprites use pixel-perfect scaling ( |
|
@copilot Make sure it uses each frame. Also, jumping just doesn't work. Also, make it so I can import it to any scene |
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Done in a4592be. Fixed all three issues:
-- Load and use in your scene
local SonicModule = dofile("Content/scripts/sonic_the_hedgehog/sonic_the_hedgehog.lua")
local sonic, hud = SonicModule.CreateSonicForPath(yourRenderPath, 100, 400, true)
-- In your game loop:
sonic:Update(dt)
sonic:Render(yourRenderPath)Also added helper functions: |
SonicModuleglobally and via return valueCreateSonicForPath(path, x, y, includeHUD)helper functionSetGroundLevel(y)andSetScreenBounds(w, h, margin)customizationOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.