Jankiness and how to fix it
Posted: Fri Nov 01, 2013 12:05 am
Hello, first post. I'm a new user of LiveCode. I used to make adventure games using hypercard back in the day, and I've also made a couple using the AGS engine. Altogether I would say I have an intermediate level of coding knowledge, at least in high-level environments like this one, but nowhere near the level of a professional.
Anyway, I put together my first game to test out the livecode environment a little. It's nothing fancy, just a simple, stupid, completely unremarkable version of Bricks. I've tested it, built it as an app, and it works, but it's janky as hell. I've gone over the code up and down and I can't seem to figure out why. It seems to get especially janky when the ball or the paddle get close to the edges of the screen.
I've put the .livecode file, as well as the compiled game into a .zip file and uploaded it to my website, since I'm not sure exactly where the issue(s) lay exactly, and I don't want to clutter up the forum by posting my card and stack scripts in their entirety. If anyone out there with more coding experience than me has the time or the inclination, I would greatly appreciate it if they could look it over and tell me what could make it run better, or if there's something I did wrong or could be done better.
I apparently don't have permission to post links in this forum, so you'll have to PM me for the link, sorry. I borrowed a basic framework for a game loop from another site, which I can also send a link to if you PM me. Everything else is my own code.
In return for your help, I offer the game itself. Play it, modify it, put your own name on it and sell it; I don't care. I will probably re-use this game as maybe a minigame in a better game, or maybe have some other use for it, but this particular version I built purely to test out the LiveCode environment, and have no intention of publishing or doing anything else with it as it presently exists. I also don't care if you re-use any of my code.
Thanks in advance.
Anyway, I put together my first game to test out the livecode environment a little. It's nothing fancy, just a simple, stupid, completely unremarkable version of Bricks. I've tested it, built it as an app, and it works, but it's janky as hell. I've gone over the code up and down and I can't seem to figure out why. It seems to get especially janky when the ball or the paddle get close to the edges of the screen.
I've put the .livecode file, as well as the compiled game into a .zip file and uploaded it to my website, since I'm not sure exactly where the issue(s) lay exactly, and I don't want to clutter up the forum by posting my card and stack scripts in their entirety. If anyone out there with more coding experience than me has the time or the inclination, I would greatly appreciate it if they could look it over and tell me what could make it run better, or if there's something I did wrong or could be done better.
I apparently don't have permission to post links in this forum, so you'll have to PM me for the link, sorry. I borrowed a basic framework for a game loop from another site, which I can also send a link to if you PM me. Everything else is my own code.
In return for your help, I offer the game itself. Play it, modify it, put your own name on it and sell it; I don't care. I will probably re-use this game as maybe a minigame in a better game, or maybe have some other use for it, but this particular version I built purely to test out the LiveCode environment, and have no intention of publishing or doing anything else with it as it presently exists. I also don't care if you re-use any of my code.
Thanks in advance.