Log In  
Follow
BenAttenborough
[ :: Read More :: ]

Cart #racerprototype-5 | 2022-06-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


A WIP "into the screen racer" prototype.
I've use bezier curves described in this post for the road: https://www.lexaloffle.com/bbs/?pid=65926
Use the controls to move the road around and move the horizon up and down.

P#112862 2022-06-07 22:32 ( Edited 2022-06-25 14:34)

[ :: Read More :: ]

Cart #racerprototype-3 | 2022-06-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

A WIP "into the screen racer" prototype.
I've use bezier curves described in this post for the road: https://www.lexaloffle.com/bbs/?pid=65926
Use the controls to move the road around and move the horizon up and down.
The bezier calculations seem to be quite expensive resulting in a reduced frame rate from the target. Possibly this is worsened by my attempt to fill in the road polygon by effectively drawing the line multiple times.
Any suggestions for improving this would be most welcome.
Hopefully the ideas here might help others.

I will look to make this into more of a game by allowing movement of the car, other cars and obstacles moving towards you and variable speed. But this is a start.

P#112744 2022-06-05 11:25 ( Edited 2022-06-07 22:34)

[ :: Read More :: ]

Is there a way to get pico8 language support AND support for included files within VS Code?

I'm using the pico8-ls extension, which is great, but it doesn't recognise #include files, so I miss out on code completion on functions imported by my .p8 file. If I switch and use the lua language server extension: https://marketplace.visualstudio.com/items?itemName=sumneko.lua I get code recognition of my functions, but not the p8 functions (weirdly the lua language server seems to assume files are included even if they are not, or at least it seems to me it does). I'd ideally like both p8 function recognition from the pico8-ls AND recognition of my included functions. But this doesn't seem possible as of today.

I did note that support for #include files is a planned featured of the pico8-ls function so maybe I just have to wait for that

P#111467 2022-05-07 16:43

Follow Lexaloffle:          
Generated 2024-04-20 14:11:36 | 0.157s | Q:14