This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-04 07:13:20

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Minecraft: In Javascript

I just had this idea of Minecraft in Javascript. However, I need help, I haven't started yet and I want ideas of how to store blocks and render the landscape, 2D or 3D.

I'd like a few developers to help me along the way, too. I'm not sure how to render 3D in Javascript Canvas yet.

Last edited by rdococ (2012-02-15 09:54:18)

Offline

 

#2 2012-02-04 07:14:54

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Minecraft: In Javascript

Use the canvas. (maybe try AT, although I'd help with this)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#3 2012-02-04 07:16:44

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

That was exactly my thought, I will be using canvas.

Great minds think alike! xD

Last edited by rdococ (2012-02-04 07:17:01)

Offline

 

#4 2012-02-04 09:48:16

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

You could have a look at the 3D of RHY's Mario Kart Experiment.


Posts: 20000 - Show all posts

Offline

 

#5 2012-02-04 10:14:37

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: Minecraft: In Javascript

If you got this, you could probably make a nice version for mobile phones with html5.


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#6 2012-02-04 10:16:29

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

veggieman001 wrote:

You could have a look at the 3D of RHY's Mario Kart Experiment.

That was one thing: awesome.

I'll have a look into the source code of that and change things to what I want.

Offline

 

#7 2012-02-04 10:18:30

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

Hey, we could use DIVs and skew it to create something like 3D! What do you think?

Last edited by rdococ (2012-02-04 10:18:49)

Offline

 

#8 2012-02-04 11:40:19

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Minecraft: In Javascript

It wouldn't work once you went on to rotation/polygon fills.  sad


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#9 2012-02-04 11:45:02

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

bobbybee wrote:

It wouldn't work once you went on to rotation/polygon fills.  sad

I'm testing some things on my other computer, I've already done rotation as a CSS3-styled div.

Offline

 

#10 2012-02-04 14:21:41

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Minecraft: In Javascript

No, I mean 3D rotation. After all, it isn't exactly Minecraft if it is 2D.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#11 2012-02-04 15:19:52

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

Plus, I did meant rotation as 3D rotation, not 2D rotation.

If we wanted it to work in Firefox aswell as Webkit/Chrome/Opera, we'd need scale, skew and 2D rotation.

Last edited by rdococ (2012-02-04 15:20:51)

Offline

 

#12 2012-02-09 16:14:12

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Minecraft: In Javascript

Can't you just use the canvas?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#13 2012-02-15 09:39:32

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

Canvas? Hmm... well I can. It actually seems like the best idea. But how would we get to the actual 3D tilting?

Offline

 

#14 2012-02-15 09:43:09

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

Canvas would be a much better idea, especially for compatibility.


Posts: 20000 - Show all posts

Offline

 

#15 2012-02-15 09:44:22

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

I agree. Canvas is the way to go, then!

Slightly offtopic, I never knew Canvas was this useful!

Only question is: How would we create a tilt effect?

Last edited by rdococ (2012-02-15 09:45:10)

Offline

 

#16 2012-02-15 09:55:06

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

rdococ wrote:

I agree. Canvas is the way to go, then!

Slightly offtopic, I never knew Canvas was this useful!

Only question is: How would we create a tilt effect?

Er, canvas is really the only way to create games in Javascript.

And you can rotate the camera.


Posts: 20000 - Show all posts

Offline

 

#17 2012-02-15 09:56:22

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

veggieman001 wrote:

rdococ wrote:

I agree. Canvas is the way to go, then!

Slightly offtopic, I never knew Canvas was this useful!

Only question is: How would we create a tilt effect?

Er, canvas is really the only way to create games in Javascript.

And you can rotate the camera.

What do you mean by rotating the camera? Give me an example please?

Last edited by rdococ (2012-02-15 09:56:42)

Offline

 

#18 2012-02-15 10:00:46

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

rdococ wrote:

veggieman001 wrote:

rdococ wrote:

I agree. Canvas is the way to go, then!

Slightly offtopic, I never knew Canvas was this useful!

Only question is: How would we create a tilt effect?

Er, canvas is really the only way to create games in Javascript.

And you can rotate the camera.

What do you mean by rotating the camera? Give me an example please?

Look at that thing RHY made.


Posts: 20000 - Show all posts

Offline

 

#19 2012-02-15 10:01:44

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

veggieman001 wrote:

rdococ wrote:

veggieman001 wrote:

Er, canvas is really the only way to create games in Javascript.

And you can rotate the camera.

What do you mean by rotating the camera? Give me an example please?

Look at that thing RHY made.

I did notice what RHY made, but the camera rotation scropts seem hidden inside all the complexity.

Actually, I looked in it and atleast the mathematics aren't confusing.

Wait--- cos and sin? AAH! They are too confusing!

Last edited by rdococ (2012-02-15 10:05:22)

Offline

 

#20 2012-02-15 10:06:37

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

rdococ wrote:

veggieman001 wrote:

rdococ wrote:


What do you mean by rotating the camera? Give me an example please?

Look at that thing RHY made.

I did notice what RHY made, but the camera rotation scropts seem hidden inside all the complexity.

Actually, I looked in it and atleast the mathematics aren't confusing.

Wait--- cos and sin? AAH! They are too confusing!

Well, you're going to need those for this project.


Posts: 20000 - Show all posts

Offline

 

#21 2012-02-15 10:06:51

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Minecraft: In Javascript

Forgive me for saying this but if that mario kart game is to complex for you, you'll never get your mc in js done...


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#22 2012-02-15 10:08:35

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

slinger wrote:

Forgive me for saying this but if that mario kart game is to complex for you, you'll never get your mc in js done...

Look, I do not know what programming maths are.

And, no, I never forgive anyone because I've been bulled too much by other kids (yes, I'm a kid) and it's time for me to have a bit of happiness for once. (and that was a true story, I was bullied at my old school)

Last edited by rdococ (2012-02-15 10:10:38)

Offline

 

#23 2012-02-15 10:13:22

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

rdococ wrote:

slinger wrote:

Forgive me for saying this but if that mario kart game is to complex for you, you'll never get your mc in js done...

Look, I do not know what programming maths are.

And, no, I never forgive anyone because I've been bulled too much by other kids (yes, I'm a kid) and it's time for me to have a bit of happiness for once. (and that was a true story, I was bullied at my old school)

Uh, we're not trying to be mean or anything. We're just saying that you'll need to learn some more advanced stuff to do this, in any language.


Posts: 20000 - Show all posts

Offline

 

#24 2012-02-15 10:15:55

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Minecraft: In Javascript

veggieman001 wrote:

rdococ wrote:

slinger wrote:

Forgive me for saying this but if that mario kart game is to complex for you, you'll never get your mc in js done...

Look, I do not know what programming maths are.

And, no, I never forgive anyone because I've been bulled too much by other kids (yes, I'm a kid) and it's time for me to have a bit of happiness for once. (and that was a true story, I was bullied at my old school)

Uh, we're not trying to be mean or anything. We're just saying that you'll need to learn some more advanced stuff to do this, in any language.

Yes, but I still want some justice for the bad things that have happened in my lives. I do not intend to bring misery on Scratch users.
------------------------------------------------------------------------------------------------

Anyway, couldn't we just use a 180x180 canvas (image container) and figure things like that out? We could even make something other than Minecraft, it can be anything 3D.

Offline

 

#25 2012-02-15 10:17:54

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Minecraft: In Javascript

rdococ wrote:

veggieman001 wrote:

rdococ wrote:


Look, I do not know what programming maths are.

And, no, I never forgive anyone because I've been bulled too much by other kids (yes, I'm a kid) and it's time for me to have a bit of happiness for once. (and that was a true story, I was bullied at my old school)

Uh, we're not trying to be mean or anything. We're just saying that you'll need to learn some more advanced stuff to do this, in any language.

Yes, but I still want some justice for the bad things that have happened in my lives. I do not intend to bring misery on Scratch users.
------------------------------------------------------------------------------------------------

Anyway, couldn't we just use a 180x180 canvas (image container) and figure things like that out? We could even make something other than Minecraft, it can be anything 3D.

1. That has nothing to do with anything.
2. 'We'?


Posts: 20000 - Show all posts

Offline

 

Board footer