语言

Menu
Sites
Language
Animals memory game for kids

Hi,

I am developing "Animals memory game" for kids.I have no idea about how to make good design of page.I am facing problem with design,please help me.

 

 

thanks and regards

Mohit Kumar

 

查看选择的答案

响应

12 回复
AVSukhov

Hello,

If you are not sure how to make the architecture, it is best to start with Basic template (HTML5 + JavaScript) and if during the development, you will need additional libraries (third-aprty libraries) you can add to your project. 

Also, you can see some sample wep apps (games):

https://developer.tizen.org/downloads/sample-web-applications?langredirect=1

mohit kumar

Hi,

thank you

happy tizen

 

AVSukhov

Hello,

Also, just fui, some info you can find in tizen wiki:

https://wiki.tizen.org/wiki/Game_development#HTML5_Game_Engines

mohit kumar

Hi,

 I am trying to store image url in two dimentional array and i want to access url using index of array.I have written code which is not working.

<html>
<head>
<link rel="stylesheet" type="text/css" href="mm.css">
<script>
var arimg=new Array(4)
for (i=0; i <4; i++)
arimg[i]=new Array(4)         

arimg[0][0]="cow.jpg";
arimg[0][1]="cat.jpg";
arimg[0][2]="ele.jpg";
arimg[0][3]="lion.jpg";

arimg[1][0]="cat.jpg";
arimg[1][1]="cow.jpg";
arimg[1][2]="ele.jpg";
arimg[1][3]="lion.jpg";

arimg[2][0]="lion.jpg";
arimg[2][1]="ele.jpg";
arimg[2][2]="cat.jpg";
arimg[2][3]="cow.jpg";

arimg[3][0]="ele.jpg";
arimg[3][1]="lion.jpg";
arimg[3][2]="cow.jpg";
arimg[3][3]="cat.jpg";

document.write(arimg[0][0]);

function mohit()
{
document.getElementById("btn1").style.backgroundImage = "url('arimg[0][0]')";
alert("welcome mohit");
}

</script>
</head>
<body>
<input type="button" id="btn1" onclick="mohit()">
</body>
</html>

mm.css file contain the following
***********************************************
#btn1
{
height:90px;
width:90px;
background-image: url("dog.jpg");
}
*****************************************

please help me

thanks and regards

mohit kumar

 

 

 

 

Mark as answer
Seoghyun Kang

Hello,

I fixed your code. When I tested the following code, it did work well.

Please refer it. :)

 

...

function mohit()
{
 document.getElementById("btn1").src = arimg[0][0];
 alert("welcome mohit");
}

</script>
</head>

<body>
<img type="button" id="btn1" onclick="mohit()">

...

 

mohit kumar

Hi,

Thank you.Tizen is very good.....

Marco Buettner

At first it isnt code practice to write any code with more than one lines in if, loops and so on without brackets...

Also use spaces to mark you code readable and define all used variables in front of your code...

var arimg = new Array(4),
    i;

for (i = 0; i < 4; i++)
{
    arimg[i] = new Array(4);        

    arimg[0][0] = "cow.jpg";
    arimg[0][1] = "cat.jpg";
    arimg[0][2] = "ele.jpg";
    arimg[0][3] = "lion.jpg";
    
    arimg[1][0] = "cat.jpg";
    arimg[1][1] = "cow.jpg";
    arimg[1][2] = "ele.jpg";
    arimg[1][3] = "lion.jpg";
    
    arimg[2][0] = "lion.jpg";
    arimg[2][1] = "ele.jpg";
    arimg[2][2] = "cat.jpg";
    arimg[2][3] = "cow.jpg";
    
    arimg[3][0] = "ele.jpg";
    arimg[3][1] = "lion.jpg";
    arimg[3][2] = "cow.jpg";
    arimg[3][3] = "cat.jpg";    
}

This code cannot work correct

document.getElementById("btn1").style.backgroundImage = "url('arimg[0][0]')";

Because arimg[0][0] is a variable and you write it as normal string ;) your backgroundImage string looks like this:

"url('arimg[0][0]')"

You have to concat the string with variable by the uses of string- and concat-symbol. The code above have to look so

document.getElementById("btn1").style.backgroundImage = "url('"+arimg[0][0]+"')";

 

Try to write a cleaner and more readable code and learn the basic of JavaScript.

mohit kumar

Hi,

I am want to download and run android application at TIZEN z1 mobile.I have no idia how to download and run android application on TIEN SUMSANG Z1,please help me.I want to know the step by step process.

 

 

 

Thank you

 

Seoghyun Kang

Hi,

 

I know that it is impossible officially.

You can launch the Tizen Native App and Tizen Web App at Tizen Z1 target.

 

daniel kim

Hi,

This video explains how to install android application using ACL. 

       https://www.youtube.com/watch?v=8ARdA4Ikzfc

Regards

 

John Ixion

There are 2 services for Android apps:

ACL http://www.openmobileww.com/#!customers-android-app-developers-and-distributors/c7mb

PAG http://pag.polarismobile.com/

Demi Sinclair

Love it. The ideas are to move next month for us. My favorite games memory games as kids! Such a cute little animal? childrensbookillustrators.net