Log In  
Follow
adro
[ :: Read More :: ]

Cart #49294 | 2018-02-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Upload version to transfer to Chip Pocket. no updates

Cart #48906 | 2018-02-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


Hi guys

Note: very novice coder. sorry of the mess.

I'm trying to recreate a childhood Fav game called BeamRider and I could really use some help understanding how
"FOR X IN ALL(Array) DO" works.

I need two types of bullets 1. Laser (short ranged) and 2. Nuke (for hitting the mothership)

I've made the array (bullets) to hold both "B" for Laser and "N" for nuke. which I need to behave differently for each other but my (bullets,N) keep over overriding my (bullets,B).

PLUS my Nuke are been draw but to my understanding of coding (which is novice at best) they should not been draw yet as I only have a (FOR B IN ALL BULLETS) in my _draw function. RAGE!!!

Is what I'm trying to do posible or do I need to make a second array for my nukes?

P#48907 2018-02-02 20:50 ( Edited 2018-02-15 15:04)

[ :: Read More :: ]

Cart #42640 | 2017-07-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4


Not a overly flashy game. but a personal challenge I set my self to better understand how to code.

I wanted to make a very basic calculator to better understand how to input and compare variables and output an answer. the two variables will increase in randomness based on your correct answer score. The operation are limited to addition subtraction and multiplication, No division as that would require a decimal place or to check the answer is a whole number which i have yet to finger-out.

--controls:--
use arrow key to navigate key pad.
press Z to input your answer
press X to submit your answer (or select the return button on key pad)
selecting the C button on key pad will clear your current answer.

--please help--
If anyone know how to check for a whole number please put in comments below

having a issue with numbers over 9999? seems to generate is know random number if i try to input a number over this. Is this a limitation with the programming language or my programming skills?

P#42642 2017-07-20 07:07 ( Edited 2017-07-22 10:11)