Join us on Discord!
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!
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

Dream of 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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

princetonlion.tibd

  • Calculators owned: TI-83+, TI-84 + CSE, Voyager 200, TI-Nspire
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.
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

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
  • Calculators owned: TI-83+, TI-84 + CSE, Voyager 200, TI-Nspire
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dream of 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. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

CKH4

#52
Whoops wrong topic but I'll definitely download.
  • Calculators owned: TI-83+, TI-84+


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?
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

Dream of 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?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

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
  • Calculators owned: TI-84+CSE, TI-nspire Clickpad, TI-84+SE

Dream of Omnimaga

Cool to hear. i would definitively like to see this game completed :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal