|
hi. doing a web based game, and got visual studio 2015 community edition, and using jaws for windows screen reader version 17. works well with visual studio, except for some of the proeprties in wpf, but work arounds, for that. apart from that, seems very accessible. reads all the errors out to me. so, could some one help me out with my game, got a project, maybe look at my project and maybe e-mail me privately off group via startrekcafe@gmail.com or neilmarvin@yahoo.com. any one done any web based games and based in meloburne, this group, and i am based in adelaide. a sighted web friend helping me out, but not real experienced with games, more javascript. so, if some one has done a web based space invaders game or 2 d shooter, did a few tutorials, and learnt, and do understand the concepts, and got a front page. now the canvas will not read out any thing, just images, and a screen reader. got a home page with info, lists, headings, a link, buttons, and also want to put radio buttons, to have different levels to play that. have to hand up this project either by december 12 or 31. so, got about 80 - 85 - 90 % of the code done. also want to expand the game, so any other code snippets, and can post that info, as well, as my project is about 24 mb, got images, sounds, sound effects, also need to have a free web server, play over the internet, as do not have a credit card. so, any one who has done a web game, and accessibility for the blind, able to help me out, see if i am on the right track, and then show me a better way how to code this puppy. up to version 3 or 4 think have re-written this a few times, and did that yesterday. can any one help me out, and get back to me asap, if you have the time, the expertise and the know how, found this group, by googling. marvin. ps: and also will send you the assignment details, not to do it for me, but maybe a better way to do things, sample code, links, sample other code, and see if it works, then i then ask for any blind users, and sighted to test my game and give me feedback. then also need to write a couple of reports, about my design, can any one help me out, and using firefox 42, google chrome, and internet explorer 11, and they do not seem to support the canvas. did try google chrome, have not tried microsoft edge, does not work with screen readers yet, maybe in 2016. let me know asap. marvin from adelaide.
ps: here's some other info i need.
pasting below.
• Add hitboxes to the player ship and enemy ships – you may have already noticed, but the current implementation allows the player to get hit above the
wings because the bounding box test checks the whole image sprite size. To make collision detection better, add a hit box around the player ship and enemy
ship that is smaller than the sprite size and more closely represents the size of the objects.
• Add more enemy types – this goes without saying, but adding more enemies to the game will make it more interesting.
• Add bosses and levels – make the game longer and more difficult by adding multiple levels with bosses at the end of each level.
• Add explosion and particle effects – the enemy ships just disappear from the screen when they are hit. Adding an explosion and particle effects when
they are hit will make the game that much better.
• Add a parallax scrolling
background – this is probably the easiest item to add, but adds so much to the game. By just making two backgrounds scroll at different speeds is an amazing
effect for any game. Just look at what I did for my Game Jam game
to see what I mean.
• Add more weapons and power-ups – what’s a
shump
without multiple weapon types and abilities?
• Change movement into vectors – instead of using static position.x and position.y, try implementing vectors in the game to make movement more uniform
for all objects. Here are two
helpful tutorials for vector math .
• Use libraries – this tutorial was designed to show you how to create a game from scratch without the use of libraries. But why reinvent the wheel? Try
using libraries for your games to help you develop faster.
Here
is one I recommend (it even has a library for sound).
ps:: need this help or advice or a one on one mentor who has done a web game, accessibility for the blind, need to hand this up either by december 12 13, or 31. can any one help me out asap today if possible. please e-mail me off list, as a 24 mb file, can upload to send space, my e-mail is: startrekcafe@gmail.com or neilmarvin@yahoo.com. need help. got my game about 80 - 85 - 90 %, just need some help or a gentle push, tried to learn from a few tutorials. typed it all up, and used tabs and tabs, spacing, etc, got visual studio 2015 community edition, and also did it in notepad, found images, sounds, using the sound.js library, in the same folder as my space invaders game. can you help me out. marvin from adelaide, australia.
|
|
|
|
|
I strongly suggest you do not post email addresses in a public forum.
|
|
|
|
|
hi. well if you can help me out, need one on one help, show me how to do a better way of things, and also add extra features, and a free web server. marvin.
|
|
|
|
|
You should do some work on this post...
It is next to impossible to read it - no breaks, no sentences...It remembers me the The Caine Mutiny of Herman Wouk, that the very first time I got a copy where there were no white-space at all (I still wonder how it got to the library)...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Questioner is blind, so the chances are that the post was written by machine.
|
|
|
|
|
I have many DIV based contents in a page with a dropdown list. Right now, it shows everything, but, I want to choose an item from the dropdown list and it show the corresponding content based on the selection.
Please make a correction to the function I'm using since it's not working:
function toggleDIvDisplay() {
var index = document.getElementById("App").selectedIndex.value;
alert(index);
var x = document.getElementById("maxLenght").value;
for (i = 0; i < x; i++) {
if(null != document.getElementById(i))
document.getElementById(i).style.visibility='block';
}
document.getElementById(index).style.visibility='visible';
}
|
|
|
|
|
Member 11826602 wrote: document.getElementById(i).style.visibility='block';
There's no such values a "block" for visibility - it's a display property.
Assuming you want to maintain the spacing on the page as you change views, you want to swap between visibility = 'hidden' and 'visible'.
Here's some quick help: http://www.w3schools.com/cssref/pr_class_visibility.asp[^]
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
i want java source code for the employee attendance...........
|
|
|
|
|
This is a forum for programmers; you can get help here on this forum if you have any questions over how to do something using JavaScript.
We do not give away software for others to sell. If you want Java (or JavaScript, that's two different things) I suggest you hire a developer.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Member 12178393 wrote: i want java source code for the employee attendance What does that even mean? Do you think there is only one way to make an employee attendance application?
Anyway, no, this site does not work that way. If you are stuck on a specific code issue please come back and ask and we'll gladly help.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
making a menu I want to have the option of the current year, the 2 proceeding it and the next one...
this very very simple bit of code does the job well, I'm just wondering if there's any reason I should use an array instead of separate variables or if I'm breaking any other good practice rules...
<script>
d = new Date();
c = d.getFullYear();
a = c - 2;
b = c - 1;
d = c + 1;
</script>
and then further down, the menu
<ul>
<li><script>document.write('<a class="btn" href="report.php?y=' + a + '">' + a + '</a>');</script></li>
<li><script>document.write('<a class="btn" href="report.php?y=' + b + '">' + b + '</a>');</script></li>
<li><script>document.write('<a class="btn" href="report.php?y=' + c + '">' + c + '</a>');</script></li>
<li><script>document.write('<a class="btn" href="report.php?y=' + d + '">' + d + '</a>');</script></li>
</ul>
|
|
|
|
|
It's neither here nor there if you store the numbers in variables or use them in-line, however your choice of variable names is definitely against good practice. Call your variables things like previousYear, thisYear and nextYear.
If you're looking to try new things you could also use a "for" loop to write your links rather than doing it as you are. That way you can alter how many years back\forward you display rather than having to show four.
|
|
|
|
|
heh, wasn't too fussed about conventions like variable naming, was more interested in if there's any reason why declaring and assigning variables like that and then just referencing them in the spot I needed would be bad practice. I think if I was gonna make a loop for it, I'd change the page from being html to php, was really just a quick exercise in me just trying to keep it simple and keep the page html rather than php
|
|
|
|
|
I want to display specific fields from an external CSV file on a web site with using JavaScript. I tried to parse that file with using "Papa parse" like this: JSBin Link
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Parse remote CSV to HTML Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script src='http://d3js.org/d3.v3.min.js'></script>
<script src='https://code.jquery.com/jquery-2.1.4.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.2/papaparse.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.2.0/mustache.min.js'></script>
<script>
Papa.parse("https://dl.dropboxusercontent.com/s/wsnizh4lyugxd60/data.csv", {
download: true,
header: true,
complete: function(results) {
console.log(results);
var data = results.data;
var arrayLength = data.length;
for (var i = 0; i < arrayLength; i++) {
var newdiv = document.createElement('div');
newdiv.setAttribute('id', 'csvdata'+i.toString());
newdiv.innerHTML = 'Battery Level: '+data[i].batteryLevel.toString();
}
}
});
</script>
</body>
</html>
How can I display a specific data from this data set in a web site like:
Battery Level: 0.62
Altimeter Pressure: 99.44185
Horizontal Accuracy: 65
Can you give me an example in JSBin or JSfiddle?
|
|
|
|
|
Dear All,
I got a question!
why can't i put the script code after the div with class="jumbotorn" ?
I have tried to put it in the , and it's work!
Please helps me!
THANKS!
<body>
<div class="jumbotron">
<div align="center">
<h1 style="font-family:微軟正黑體;">行銷神語</h1>
<p id="pharse"></p>
<p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a></p>
</div>
</div>
<script>
function makePharse(){
var word1 = ["24/7","Multi-Tier","30,000 foot","B-to-B","Win-Win","Customer"];
var word2 = ["Empowered","Value-Added","Oriented","Focused","Aligned"];
var word3 = ["Process","Solution","Tipping-Point","Strategy","Vision"];
var rand1 = Math.floor(Math.random()*word1.length);
var rand2 = Math.floor(Math.random()*word2.length);
var pharse = word1[rand1]+""+word2[rand2]+"";
var pharseElement = document.getElementById("pharse");
pharseElement.innerHTML = pharse;
pharseElement.innerHTML = "TESt";
}
</script>
</body>
|
|
|
|
|
I do not agree that your script will work inside the head.
makePharse() is a function that you have to call it on some event say button click, so add an onclick to your button:
<a class="btn btn-primary btn-lg" href="#" role="button" onclick="makePharse()">Learn more</a>
and comment out the
|
|
|
|
|
|
I added the social media buttons facebook, twitter and linkedin to my page. Works ok on Chrome, Firefox and Safari. It blocks (and sometimes crashes) IE11, I didn't check previous versions yet.
I have no idea why, does anyone have an idea on how to solve it? Right now, I check if it is IE and just disable the tweet and facebook buttons (linkedin is working).
isIE is a boolean that indicates if it is Internet Explorer and "removes" the functionality. (for now)
Here's the rendered code:
twitter
where the button should be
<div id="tweetlink"></div>
<script>
if(!isIE){
document.getElementById('tweetlink').innerHTML =
"<div><a href='https ://twitter.com/share' class='twitter-share-button' data-url='urlhere' data-size='large'>Tweet</a></div>";
}
</script>
<script>
if(!isIE){
$(window).load(function () {$.getScript('<a href="http://platform.twitter.com/widgets.js">http://platform.twitter.com/widgets.js</a>');});
}
</script>
facebook
part 1
in the head
<meta property="og:url" content="urlhere" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Solar Timelines for AFFECTS" />
<meta property="og:image" content="http://urlhere/Styles/Images/GUI/STAFF_96x96.png" />
part 2
right after the body tag
<script>
if(!isIE){
window.fbAsyncInit = function() {FB.init({appId: 'idhere',xfbml: true,version: 'v2.5'});};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}
</script>
part 3
somewhere in the html where button should be
<div class="fb-like" data-href="urlhere" data-layout="button_count" data-action="like" data-show-faces="false" data-width="200" data-share="true"></div>
I did google it, but all results popped up with how to block the buttons, not on how to "not block" the page.
Feel free to look at it here[^] @ bottom of the page. In Chrome all buttons are there in IE only linkedin is there.
|
|
|
|
|
Hi,
can any one tell me how to create a site column in javascript.
I used this in my code:
var fieldschema2='Field Type="Number" DisplayName="AccordionOrder" Name="AccordionOrder" Required="False" Indexed="True" EnforceUniqueValues="True"/>'
but control is going to failure method.
I also tried Numeric and Integer types but column is not created.Let me know.
modified 13-Nov-15 2:05am.
|
|
|
|
|
What in the world are you talking about? What type of grid control is this for? It looks like you are trying to create sever-side properties in JS and expect it to work. We need a lot more details to understand what you are talking about.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have this JQuery here that I wrote a while ago. I use regex to extrack the price of the service. But now I added free services over a dollar amount, so I have instances in which service names now have 2 currency amounts.
So for example:
Free Shipping US48 $750.00 -- $0.00 USD
I just want the last match. Currently I get 2 matches,
$750.00
$0.00
Not sure if I should try and rewrite the Regex, or rewrite the JQuery.
I'm terrible with Regex, that's why I'm asking.
var rate_API_Text = $('input[name*="_lb_OP_AO_S2_Quotes_Original_Field"]:checked').next().text();
var rate_API_Index = rate_API_Text.indexOf("--");
var rate_API_Name = rate_API_Text.substr(0, rate_API_Index - 1);
$('[id*="_lbl_OP_AO_S2_Dashboard_StatusMessage_Field"]').text(rate_API_Name);
var rate_Amount = "$0.00";
var re_ratePlan = new RegExp("(\\$[0-9,]+(\\.[0-9]{2})?)");
var txt_ratePlan = $('input[name*="_lb_OP_AO_S2_Quotes_Original_Field"]:checked').next().text();
var match_ratePlan = re_ratePlan.exec(txt_ratePlan);
if (match_ratePlan.length !== null || match_ratePlan.length > 0) {
for (var i = 0; i < match_ratePlan.length; i++) {
rate_Amount = match_ratePlan[i] + "\n";
break;
}
if (match_ratePlan !== null) {
$('[id*="_lbl_OP_AO_S2_Dashboard_Calc_RateAmount_Field"]').text(rate_Amount);
}
else {
$('[id*="_lbl_OP_AO_S2_Dashboard_Calc_RateAmount_Field"]').text("$0.00");
$('[id*="_txt_Estimated_Rate_Field"]').val(rate_Amount);
}
}
|
|
|
|
|
I changed the source of the regex to the latter part of the string index instead.
That's what happens when you have to go back to code you wrote years ago. You forget exactly how it operates and you have to rethink it again.
var rate_API_Text = $('input[name*="_lb_OP_AO_S2_Quotes_Original_Field"]:checked').next().text();
var n = rate_API_Text.indexOf("--");
var rate_API_Name = rate_API_Text.substr(0, n - 1);
$('[id*="_lbl_OP_AO_S2_Dashboard_StatusMessage_Field"]').text(rate_API_Name);
var rate_Amount = rate_API_Text.substr(n, rate_API_Text.length - 1);
var re_ratePlan = new RegExp("(\\$[0-9,]+(\\.[0-9]{2})?)");
var match_ratePlan = re_ratePlan.exec(rate_Amount);
if (match_ratePlan.length !== null || match_ratePlan.length > 0) {
for (var i = 0; i < match_ratePlan.length; i++) {
rate_Amount = match_ratePlan[i] + "\n";
break;
}
if (match_ratePlan !== null) {
$('[id*="_lbl_OP_AO_S2_Dashboard_Calc_RateAmount_Field"]').text(rate_Amount);
}
else {
$('[id*="_lbl_OP_AO_S2_Dashboard_Calc_RateAmount_Field"]').text("$0.00");
$('[id*="_txt_Estimated_Rate_Field"]').val(rate_Amount);
}
}
|
|
|
|
|
Can anyone help am new in JavaScript environment I want to create a JavaScript tour guide library that will allow re-usability of the tour guide across various web applications.
|
|
|
|
|
Member 11984883 wrote: Can anyone help Not unless you explain exactly what help you want.
|
|
|
|
|