@pikario@mastodon.gamedev.place
I may have a new side project 😇
Finally took time to see how dev on the #playdate works (specially 3D !)
@pikario@mastodon.gamedev.place
I may have a new side project 😇
Finally took time to see how dev on the #playdate works (specially 3D !)
@pikario@mastodon.gamedev.place
I've successfully rewritten the code in C (in the video above it was lua): I will need a direct access to the 3D API and the best performance for the idea I have
And now I go to sleep 🥱
@pikario@mastodon.gamedev.place
It wasn't easy, the tunnel is in fact working since the beginning of the week **inside the simulator**, and when I uploaded it to the real device it crashed 🥲
It took me the last two days of trials and crashes to make it work: I was cpu bound (and so the device kill the app), I needed to split the game init between multiple frames
@pikario@mastodon.gamedev.place
I'm having a really great time on this project ❤️
I've been able to add some states (menu, in game and pause), with some UI (I draw everything myself, event the font), an object floating in the tunnel (it's a test for the future player character). I also greatly improved the graphics: I found a wireframe mode from the SDK but I wasn't happy with so I rewritte some parts. I didn't except to have so much fun writing C!
Next focus: the gameplay ☝
@pikario@mastodon.gamedev.place
Working with a tiny device like the playdate and its constraints take me back when I was doing games for my casio calculator during school, I loved making them!
And I was sending my creations to my friend directly with a cable, it was so cool
@pikario@mastodon.gamedev.place
Finally a beginning of something that looks like a gameplay
(I'm using the crank to rotate)
@pikario@mastodon.gamedev.place
The draw order was a headache (the obstacles were not hidden by the tunnel), at the end I draw all of them (tunnel + obstacles) as the same object, it solves a lot of things x)
The first time I ran this version on real hardware, the framerate was low (below 20fps), I've implemented sort of a LOD system for the tunnel and now I stay around 30fps, I think it will be my target (although the playdate can go up to 50)
@pikario@mastodon.gamedev.place
I fixed the issue I had preventing me from drawing images (an uninitialized pointer...), so now I have a title screen! Meet 𝗦𝗨𝗣𝗘𝗥 𝗧𝗢𝗕𝗢𝗚𝗚𝗔𝗡 𝟯𝗗 😋
@pikario@mastodon.gamedev.place
I'm happy I've finally found a way to manage my memory allocations to be able to bring more variety into the obstacles patterns (maybe you noticed it was looping in the last video I shared...)
Never thought to like this much coding with C x)
@pikario@mastodon.gamedev.place
I've made a tool in godot so I can design the tunnels more visually, I can import and export an array of points as text. I can just copy/paste from/to my playdate code in C
@pikario@mastodon.gamedev.place
Last week I focused on the technical side, I now have a stable 20 fps and I can generate obstacle patterns easily 😮💨
Next: level design
@pikario@mastodon.gamedev.place
Audio balance is always the hardest part of gamedev 😓
@pikario@mastodon.gamedev.place
Okay, I'm very proud of the idea I had for the cover art (the one you saw in the #playdate menu), but I will not show it here, you will have to see to yourself when released 👀
(it's only a matter of weeks)
@pikario@mastodon.gamedev.place
Something I wanted to do for a while: using the accelerometer to add an effect when tilting the playdate. It's not my first try to get it right, I struggled with the maths, but today's implementation pleases me!
It's only used in the menu so it won't distract during the levels (they are hard enough 😇)
@pikario@mastodon.gamedev.place
My initial plan was to release a first version on itch and then wait for a slot to publish it on the playdate catalog (can take months). But I learned today I will not be able to use the leaderboard API for the itch build, so I'm now thinking of skipping the itch release 🤔
@pikario@mastodon.gamedev.place
OMG in the doc about coding in C for the #playdate they insist that you don't use double in your code so I was careful to always use float. I just discovered a function using cos and sin (instead of cosf and sinf), I replaced them and now I have gained 8FPS, they were right about double 😳
@pikario@mastodon.gamedev.place
I've submitted the game to Panic! 😎
@pikario@mastodon.gamedev.place
For the future catalog page I'm creating a banner, Panic says it's recommended not to just be a screenshot, but a render like a cover on an old game box. So I've recreated a tunnel with obstacles in blender, I like the render.
But I'm still researching how I can integrate the title (it can be in color) 🤔
My attempts:
@pikario@mastodon.gamedev.place
Okay, I had an idea to play with the background on the catalog page to make a 3D effect, what do you think?
@pikario
I like that!
불러오는 중…