New games every week!
JSE - New To The Todo
Blog
2nd July 2021
I've opted to add a couple of new items to the ToDo list.
-=-=- Yesterday I wondered how far I've come. After the test from the Usborne book a couple of days ago, I found myself wanting to try the same kind of thing with a bit of Blitz2D code. I headed off to the First Wednesday Workshop page, and grabbed the very first bit of code on there.
It's one of my own little games, and features a ball bouncing up the screen. The very first line is broken, because Blitz2D uses ; to symbolise commented lines, whilst JSE uses // But, having changed that, everything else *appears* to work, though gameplay wise, it's very very broken. Still, the ball bounces.. once.. and the loop runs, albeit extremely slowly. Upon hitting the ground, the game is over. Hmm.. I wasn't quite happy with how it runs, so I switched over to Windows, opened up Blitz and popped the code in there, to be sure.. There, it runs entirely differently. The ball bounces endlessly on the ground, and you can hop up and continue to bounce on the boxes as you go. It's obvious, then, that although the two languages are "mildly" compatible, there's definitely something going awry in there. Somewhere. I then focussed on fiddling with a few commands, neatening little bits of the syntax up, but most importantly, ensuring I didn't break anything else as I go. I also added the KeyDown command whilst doing this, since it seemed somewhat important when running Blitz2D code. Meanwhile...This test has shown up a rather important flaw. If you try to copy any of the other first Wednesday Workshop examples, they all have a command that's very obviously missing. FunctionsDefining and calling functions should definitely be part of the language. I've been putting this one off for quite a while, but it's kinda important, and trying to copy+paste from SoCoder showed this up quite a bit. Every example used them. Everything!! So. Yeah, that definitely needs doing. Functions are now on the todo list. My mind is currently bubbling away trying to figure out the best way to do this, using the techniques that I've already coded. Local/Global issues are likely to start to crop up at this point, so I'll have to be very careful with how I'm working with these. Also Stack Overflows will probably crop up a LOT more often! Hmm... Types/Objects/ClassesLots of usage of Types in the Workshop, too. Fundamentally, I expect that Types would work a bit like Arrays, but instead of having numbered elements, you have words linked to each one. I expect these won't be "too" hard, but doing more complex Objects would probably be a lot tougher. Giving objects internal functions and the like, would be rather tricky to handle, especially since I haven't coded standard functions yet!! For now I'll likely stick to how Blitz2D/3D handles Types. Those seem simple enough. I think.. .. Maybe! Fix Ball-UpSince Ball-Up, as simplistic a game as it is, isn't actually working, I still have some work to do with the underlying code. Something isn't being understood somewhere, and it's a good idea to fix up these issues. Having an obviously broken bit example to focus on will (hopefully) be a good thing to aim for. And so, the ToDo list grows. The journey is far from over..
Views 99, Upvotes 20
Daily Blog
,
Jse
,
Todo
New games every week!
|