The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

[CSE Basic] Flatforme

Started by 123outerme, January 09, 2015, 11:52:46 pm

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

123outerme

Quote from: princetonlion.tibd on January 31, 2015, 08:45:31 pm
Jumping up, when it changes to a lowercase o for a few seconds and then jumps

Oh, okay. I've made the time between pressing the key and the visual cue shortened (thanks to DJ :) ). It should better.

Also, I uploaded a new beta!

DJ Omnimaga

Quote from: 123outerme on January 31, 2015, 06:11:12 pm
Quote from: DJ Omnimaga on January 28, 2015, 03:03:12 am
Speed seemed fine on my calc, but the enemies should probably move at an higher pixel interval, especially in later levels. Although they would move as fast, if not faster than your character, you can actually stab them so you could easily get through them anyway. You should move more stuff out of the main loop, though (if possible, everything that isn't movement), because then speed might get even greater. However, I would advise against using Goto for such game. Instead, take an extra variable then store a value in it when exiting loops rather than using a Goto. Then replace labels with If Variable = That value:Then:<code>:End. Otherwise, Goto search from the very beginning to the end of the game code to find the appropriate label and it slow things down a lot (for large programs it can take as much as 1 second to find the Lbl if it's at the end of the code)

I didn't have time to try the level editor, though.

Thanks for the tip! And to get back to the main loop, do I use a Goto?


Quote from: princetonlion.tibd on January 31, 2015, 05:54:36 pm
I tried this. I like the jumping animation.

I think moving in mid-air is a bit hard. The main menu is cool though :)

Thanks! Are you talking about jumping up in a direction, or when "floating" down?
Generally, good programming practice is to avoid Goto at any cost. It is fine in certain languages, but in BASIC it's generally best to never use labels. Jumping at the very start is OK if the Goto is not nested in a For/Then/Else/While/Repeat block, though.

princetonlion.tibd

Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

123outerme

Quote from: princetonlion.tibd on February 01, 2015, 06:06:54 pm
Memory leaks?

Do you mean why to not use Goto? I think DJ explained it, but Goto and Lbl are extremely slow, taking up to a second to find the Lbl command.
If you are saying that you found a memory leak, I haven't encountered one, but if you have, I'll fix it.

princetonlion.tibd

I think there are memory leaks if the Goto is going out of a loop. It'll just keep trying to look for the 'End' until it runs out of memory (paraphrased from "Programming the TI-83/84+)

I didn't find a memory leak.


Apparently V200's are immune to memory leaks with goto
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

DJ Omnimaga


DJ Omnimaga

By the way, how is this progressing? I was wondering since this looked quite cool and it has some potential if some issues get fixed. :)

CKH4

February 21, 2015, 04:30:08 pm #52 Last Edit: February 21, 2015, 04:35:34 pm by CKH4
Whoops wrong topic but I'll definitely download.


123outerme

Quote from: DJ Omnimaga on February 21, 2015, 08:44:36 am
By the way, how is this progressing? I was wondering since this looked quite cool and it has some potential if some issues get fixed. :)

I haven't really been working on this much. Whenever I was bored enough in class, I was working on some other side projects. I don't exactly remember some of the issues besides speed and level design, with the one platform; have you found any?

DJ Omnimaga

Heya nice to see you again, I was worried you had quit calc programming altogether since you had vanished from the community for a while. D: I don't exactly remember about speed, but I remember that vertical blocks drew with horizontal lines and I thought that vertical would be a faster solution.

What other projects are you working on by the way?

123outerme

Quote from: DJ Omnimaga on March 14, 2015, 09:43:05 pm
Heya nice to see you again, I was worried you had quit calc programming altogether since you had vanished from the community for a while. D: I don't exactly remember about speed, but I remember that vertical blocks drew with horizontal lines and I thought that vertical would be a faster solution.

What other projects are you working on by the way?

I believe I had already fixed that. I know that speed is definitely still an issue, and I am ready to start work on it again!
Also, http://codewalr.us/index.php?topic=337.new#new

DJ Omnimaga

Cool to hear. i would definitively like to see this game completed :)

Powered by EzPortal