DSiWare Forum

Topic: Petit Computer

Showing 9,201 to 9,220 of 9,550

AuthorMessage
Avatar

PixelRobin

9,201. Posted:

@SmokedSausage I have the "assets" done. All thats left to do is the HTML...

yeah.

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

brizobst

9,202. Posted:

Sorry if this has been covered before, but a question about arrays and multiple enemies.

Up until now, whenever I'd had multiple enemies, I've given each enemy its own set of variables. For example:

enemy 1: EX1,EY1, E1HP.. etc
enemy 2: EX2,EY2, E2HP.. etc

It gets the job done, but I feel it's a little sloppy, and was wondering if I could use my array so I just have universal variables for hit detection, like walls do for example. I'm suspecting I might have to learn about SPSETV and SPHIT, commands I've avoided. I've posted a video of my current project with QR codes (29) in the QR thread if you want to look at my code so far, but I realise it's a lot of code to scan/look through. Thanks in advance for any help!

brizobst

AuthorMessage
Avatar

Gimmemorecoinz

9,203. Posted:

I know off site linking may not be the best thing... but check this out!
This is a link to my blog which here I am documenting the early beginings of my Petit Computer Code interpreter which will soon Run Petit computer code!!
http://petitcomputer.wikia.com/wiki/User_blog:GimmeMoreCoinz/...

It will have a parser built in, debugging, and all kinds of things. Right now it only has a stack generator, and no program stack (For those technicaly wizards)
Anyway This is all I can do for the night so I'll be back at the solution tommorow! You can comment on my blog if you like or pm me, or email or something I do not mind. or ask me here but it does get cluttered. use @ to address me if you respond to this post so that i get an email alert ok? Thank you I hope you look foreward to this it's going to be awesome! I'm having fun with it hehe

Got a project? PM ME on here!
Youtube: lostkitty64x
Want help with coding? PM ME! PM ME PM ME!! XD
FC: WIll post later.
Systems I own: ds lite, 3DS, PC/gaming, steam platform. I play alot of games. Just ask ! Minecraft anyone? :D

AuthorMessage
Avatar

Discostew

9,204. Posted:

Doing some testing, I'm starting to see that using 2 GOTOs is faster than GOSUB/RETURN for jumping to one place and then back. I honestly find this weird, but then after thinking about it. 2 GOTOs means it checks a list of labels twice while GOSUB/RETURN increments the stack, writes the location, checks the list of labels once, reads the location on the stack and decrements it. Sounds like a lot more work, but just imagining having 100s of labels, I'd imagine GOTO may in the end be slower for larger programs. The length of the labels would also affect this I think. I'd have to do some major testing instead of the smaller kinds I have been doing.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

AuthorMessage
Avatar

Traulight

9,205. Posted:

What is a sprite's control number for?

Traulight

AuthorMessage
Avatar

Gimmemorecoinz

9,206. Posted:

Traulight wrote:

What is a sprite's control number for?

You can only refer to a sprite by it's control number. Its literally the only way to tell one sprite apart from another in your code..
if you used SPSET 5 ... for example... then tried to use SPOFS 1 ... (parameters here)
You would be MOVING sprite number 1, and not sprite number 5.
Those numbers are the programmers only means of knowing what sprite they are trying to do something to/with.
I hope that isn't too cryptic.

Got a project? PM ME on here!
Youtube: lostkitty64x
Want help with coding? PM ME! PM ME PM ME!! XD
FC: WIll post later.
Systems I own: ds lite, 3DS, PC/gaming, steam platform. I play alot of games. Just ask ! Minecraft anyone? :D

AuthorMessage
Avatar

PixelRobin

9,207. Posted:

Has anyone ever ported any game and watch games? I kinda want to port some of them into one big program...

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

randomous

9,208. Posted:

@Discostew That's pretty interesting, but like you said, it makes sense. It's basically comparing 2N against N + C, where N is the number of labels and C is the (presumably) constant time required to do the extra stuff for GOSUB. The constant time is probably large, so for a relatively few amount of labels, the 2N will be smaller. However, 2N grows faster than N + C, so (as you've already described), using 2 GOTO's will probably become slower than a regular GOSUB as your program uses more and more labels.

randomous

AuthorMessage
Avatar

bigdog00

9,209. Posted:

@levicjr, IT HAS BEEN OVER 3 WEEKS AND I HAVE BEEN DYING TO PLAY THE NEW RAYSPACE!!!!!!!!!!!!! When will it be released? Also, I won't be getting my new PC until next weekend (this coming weekend).

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

LeviCelJir

9,210. Posted:

bigdog00 wrote:

@levicjr, IT HAS BEEN OVER 3 WEEKS AND I HAVE BEEN DYING TO PLAY THE NEW RAYSPACE!!!!!!!!!!!!! When will it be released? Also, I won't be getting my new PC until next weekend (this coming weekend).

It's really been that long? Wow its not done yet but it's coming.... slowly

Hi I'm Levi and I like Bloopys :^)

AuthorMessage
Avatar

bigdog00

9,211. Posted:

LeviCelJir wrote:

bigdog00 wrote:

@levicjr, IT HAS BEEN OVER 3 WEEKS AND I HAVE BEEN DYING TO PLAY THE NEW RAYSPACE!!!!!!!!!!!!! When will it be released? Also, I won't be getting my new PC until next weekend (this coming weekend).

It's really been that long? Wow its not done yet but it's coming.... slowly

:(
Could I have it how it is as of now please?

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

LeviCelJir

9,212. Posted:

bigdog00 wrote:

LeviCelJir wrote:

bigdog00 wrote:

@levicjr, IT HAS BEEN OVER 3 WEEKS AND I HAVE BEEN DYING TO PLAY THE NEW RAYSPACE!!!!!!!!!!!!! When will it be released? Also, I won't be getting my new PC until next weekend (this coming weekend).

It's really been that long? Wow its not done yet but it's coming.... slowly

:(
Could I have it how it is as of now please?

um sorry but sadly no...

Hi I'm Levi and I like Bloopys :^)

AuthorMessage
Avatar

bigdog00

9,213. Posted:

LeviCelJir wrote:

bigdog00 wrote:

LeviCelJir wrote:

bigdog00 wrote:

@levicjr, IT HAS BEEN OVER 3 WEEKS AND I HAVE BEEN DYING TO PLAY THE NEW RAYSPACE!!!!!!!!!!!!! When will it be released? Also, I won't be getting my new PC until next weekend (this coming weekend).

It's really been that long? Wow its not done yet but it's coming.... slowly

:(
Could I have it how it is as of now please?

um sorry but sadly no...

Dang. Just the campaign or just the multiplayer?

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

LeviCelJir

9,214. Posted:

Is there anyway to make FOR go faster?
I'm trying to have something be read fast but it causes soooo muchhhh lagggg
here is the code
FOR I=0 TO 191
FOR J=0 TO 191
IF MAP(I,J)==41 THEN MAP(I,J)=1
IF MAP(I,J)==37 THEN MAP(I,J)=41
NEXT
NEXT
It's not always going btw its a one time thing at a certain time in the program

Edited on by LeviCelJir

Hi I'm Levi and I like Bloopys :^)

AuthorMessage
Avatar

bigdog00

9,215. Posted:

or can you tell me the code for the MP or something @leviciljir? Please? I've been dying to play it!!!

I like petit computer! Asphault 3d is awesome!

3DS Friend Code: 0473-8697-6288 | Twitter: bigdogdt

AuthorMessage
Avatar

Slayer

9,216. Posted:

I stumbled upon a happy accident while working on Apocalypse Rising. I removed a SPOFS that caused an error and when you shot the zombie on the screen it would respawn and the game would carry on, which is close to what I want it to do. That was interesting.

Edited on by Slayer

I have nothing really to say about myself.

AuthorMessage
Avatar

Discostew

9,217. Posted:

@LeviCelJir Unfortunately, reading 36k+ elements is not going to be fast. You'd probably get some speed out of it if you made your array a 1D array rather than a 2D (reducing FOR loops to 1, and rather than using 2 variables to get data from your array, you'd only use one), but then you'd have to change everything else that uses the array in its 2D form.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

AuthorMessage
Avatar

Traulight

9,218. Posted:

So, I've been testing different methods of movement coding for my game. I tried making it so on the first loop it loads all the sprites and stuff and will keep going back to the loop until you press, lets say, the left button on the D-pad, then it goes to a new loop that does the same thing but places the sprite/sprites one or two pixels to the left if you pressed the left button so it looks like you are moving. That method requires way too much patience and time and isn't necessary. Does anyone have any explanation short or long on a good method of movement? I know it's asking a lot but I might as well ask, cause I'm really new to this.

Edited on by Traulight

Traulight

AuthorMessage
Avatar

Hairmanban19

9,219. Posted:

@Bluerobin2 there is a Game and Watch styled game here: http://petitcomputer.wikia.com/wiki/RS

...

3DS Friend Code: 3136-7615-5907

AuthorMessage
Avatar

PixelRobin

9,220. Posted:

oh thanks @Hairmanban19! Havn't seen you here in a whil hi :).

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126