joeheader16
friendsoffortiesfive Aimoo Forum List | Ticket | Today | Member | Search | Who's On | Help | Sign In | |
friendsoffortiesfive > General > Games Go to subcategory:
Author Content
Zenith
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Date Posted:02/05/2023 8:20 PMCopy HTML

CONCEIVE, BELIEVE, ACHIEVE!
Zenith #126
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/16/2023 4:02 AMCopy HTML

Please check previous page, then come back to this.

=========================================


When you CUT the  printscreen pic, the image disappears onto the clipboard. That's why you need a second pic in MS-PAINT. Shrink the default window in second NEW pic till it is less than the cut, before pasting. The cut will over-ride that. Otherwise your cut has a wide border, so in effect .. NO CUT.

Zenith #127
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/16/2023 1:49 PMCopy HTML

*** BE MINE ***
and
all that rot!
CONCEIVE, BELIEVE, ACHIEVE!
Niceguy2 #128
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:03/17/2023 3:21 AMCopy HTML

Yes, yes, I know about shrinking the window and cutting the printscreen on Paint. Have done that many times. I will see what I can do when I have a bit more time.  Thanks, Dave. 

Zenith #129
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/18/2023 4:07 PMCopy HTML

ZENITH'S COLOR TUTORIAL

The hexadecimal (base-16) color system uses 16 single-digit numbers.

00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15  decimal
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F  hexadecimal

Hexadecimal number format is: #RrGgBb usually in steps of 33 hex ... max FF
RGB color format is: rgb(R ,G ,B ) usually in steps of 51 dec ... max 255

Kid's paint set primaries are RED, YELLOW, and BLUE
Light-mixed primary colors are red, green, and blue.

red and green  = yellow
red and blue   = magenta
green and blue = cyan

red and green and blue = gray #808080, or other equal numbers
Max gray = white #FFFFFF
Min gray = black #000000

As numbers go down the colors get darker.

Browsers differ, but normally they agree on steps of 33Hex or 51Decimal.
These steps are separated fairly well. 
Colors off by 1 unit are tough to tell apart.

Check out colors at: https://www.w3schools.com/colors/colors_picker.asp


I copied this from GENERAL

It's good to have this clear so you basically can tell colors without lookup tables.

Use CTRL-PLUS to expand text size for reading this.

CONCEIVE, BELIEVE, ACHIEVE!
Zenith #130
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/18/2023 4:12 PMCopy HTML

** BROWSER-SAFE COLORS **

# Rr Gg Bb

#000000#000033#000066#000099#0000CC#0000FF
#000000#003300#006600#009900#00CC00#00FF00
#000000#003333#006666#009999#00CCCC#00FFFF
#000000#330000#660000#990000#CC0000#FF0000
#000000#330033#660066#990099#CC00CC#FF00FF
#000000#333300#666600#999900#CCCC00#FFFF00
#000000#333333#666666#999999#CCCCCC#FFFFFF

 


** PASTELS FOR BACKGROUNDS **

The color that was 00 above

for brightest intensity

goes up in steps of 33,

(except for EE).


#FFFF33#FFFF66#FFFF99#FFFFCC#FFFFEE
#FF33FF#FF66FF#FF99FF#FFCCFF#FFEEFF
#FF3333#FF6666#FF9999#FFCCCC#FFEEEE
#33FFFF#66FFFF#99FFFF#CCFFFF#EEFFFF
#33FF33#66FF66#99FF99#CCFFCC#EEFFEE
#3333FF#6666FF#9999FF#CCCCFF#EEEEFF
CONCEIVE, BELIEVE, ACHIEVE!
Zenith #131
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/18/2023 5:48 PMCopy HTML

HEX   DEC
00    000
33    051
66    102
99    153
CC    204
FF    255

where

#FFFFFF = rgb(255,255,255)


For fine tuning 11H = 17D

Zenith #132
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/29/2023 2:50 PMCopy HTML

<!-- All styles must be on one line in aimoo.
Not sure about Javascript! -->

<div style="
width:400px;
margin:0px auto;
text-align:center;
border:12px double #000066;
background-color:#ffffcc;
">

<p>
VORK'S JAVASCRIPT DEMO:<br><br>
Convert Fahrenheit to Centigrade/Celcius<br>
Please click button!
</p>

<!-- Invoke Javascript -->
<a href="javascript:

/* prompt is a box with a user text window in it */
/* Ask for degree F and put it into a text-variable called numb */

var numb = prompt('Please type a Fahrenheit degree in the box');

/* Transfer text-string numb into a decimal-number variable called f */
var f = parseFloat(numb);

/* Do conversion from f (input float) to degree C (called n here),
with well known formula */

var n = (f-32)/1.8;

/* Chop off long list of decimals on variable n
by rounding to 2 places */

c=Math.round(n*100)/100;

/* Tell user the answer by concatenating numbers and strings*/
/* alert is a box with no user window in it */

alert(f + 'F is ' + c + 'C');
">

<button type="button"> F to C </button>
</a>

<br><br>
</div>




Joe:
change var n = (f-32)/1.8; to convert feet to meters.
Terminate with ; as shown.

Change text to match situation.

A string needs 'single quotes'.

Add N + 'string' for responses, where N is a float,

like N + ' = the answer.'


f is the user number,

and n is the converted number.

1 foot is  exactly 0.3048 meters

CONCEIVE, BELIEVE, ACHIEVE!
Zenith #133
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/29/2023 3:01 PMCopy HTML

VORK'S JAVASCRIPT DEMO:

Convert Fahrenheit to Centigrade/Celcius
Please click button!




 I surprised myself .. this is a direct copy of the code in the box, without the one-line consideration!!!

CONCEIVE, BELIEVE, ACHIEVE!
Niceguy2 #134
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:03/30/2023 1:27 AMCopy HTML

The final result is very good, Dave, but the rest is Greek to me.  Didn't even know what you were trying to do.

Zenith #135
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/30/2023 2:26 PMCopy HTML

It's algebra.

You want to wind up with:

number_of_ meters = k  x  number_of_feet

where k=0.3048


The only line besides text to change is the one with the formula in it.

The rest can stay the same.


Change var n = (f-32)/1.8; to convert feet to meters.


The n is a variable, like a container, preceded by var, and will hold the answer

The f is the text number container that the user input, converted to a decimal number.

So we dump the calculation for centigrade and re-use the f.


NOTE:

The user input a WORD that stands for a number, like "thirty-three", but looks like "33".

What we need is 33 with no quotes.

var f = parseFloat("33"); does that, and now var f = 33.0000


So now in the conversion line from feet to meters we have

var n = 0.3048 * f.


* means "times" in comp language math,

because x can be used as a variable and would be confusing.


Except for changing text to tell whats happening, n is the answer.

All the funny stuff with rounding, etc stays the same.

Just tell the user what c and f are in this case.

n is really same as c, but n has about a dozen decimal places in the tail and c has 2.


Please re-read the tut, noting that I edited the remarks to be green and blue,

and see if it is clearer now.


Your last javascript line will be:

not alert(f + 'F is ' + c + 'C'); but

alert(f + ' FEET is ' + c + ' METERS');


f and c can be anything, like m could stand for meters, but change them EVERYWHERE.

The comp doesn't care what you call variables, but the guy reading the code might.

Like, "How come the coder used c for meters? Did he mean centimeters?"

Zenith #136
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/30/2023 4:02 PMCopy HTML

<!-- HTML comment -->

/* javascript comment */



There are:

alert

confirm

and prompt popup boxes available.

Zenith #137
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/30/2023 10:03 PMCopy HTML

CONCEIVE, BELIEVE, ACHIEVE!
Zenith #138
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/30/2023 10:54 PMCopy HTML

Re friend's site .. his is BBC. Javascript mates with HTML, not BBC. If he can turn on HTML, javascript should work.


"My" (not owner)  forumotion group takes both, but BBC works better for my games there, and only in Firefox.

HTML works for non-copied headers. Anything copied in HTML loses borders.

Niceguy2 #139
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:03/31/2023 3:00 AMCopy HTML

Re friend's site .. his is BBC. Javascript mates with HTML, not BBC. If he can turn on HTML, javascript should work.


"My" (not owner)  forumotion group takes both, but BBC works better for my games there, and only in Firefox.

HTML works for non-copied headers. Anything copied in HTML loses borders.


Thanks for all this, Dave.

 

My friend was Foxy who very recently passed away, but her ProBoards group is still going strong.  You're right, that group uses BBC, and I'm sure HTML is not turned on.  Many things that work in Aimoo will not work in that group. 

 

It seems strange to me that some things work, and some don't, depending on the browser. 

Zenith #140
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/31/2023 4:26 AMCopy HTML

Does anyone in there have admin rights. Always good to have a second-in-command!
Niceguy2 #141
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:03/31/2023 4:46 AMCopy HTML

There are a couple of Moderators.  I have asked the one most likely to take over if she has all the powers of the former owner.  She didn't answer positively, so I have my doubts.  She has been in contact with the ProBoards administrator, though.  I suspect she will eventually become the owner, with full access.

Zenith #142
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:03/31/2023 3:28 PMCopy HTML

I went to Fantasy Castle and read the Smallest Dragon-rider story, last night, as a visitor.



Browsers dick around with the code to suit themselves. Add stuff, re-arrange it, eff-it-up, usually!

If they break on a hyphen, it fractures the one-line rule for styles.

Niceguy2 #143
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:04/01/2023 2:45 AMCopy HTML

Zenith #144
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:04/03/2023 12:30 AMCopy HTML

Hi, Joe:
You may like to get back to making your own banners!

OBJECTIVE: 
We will first make a blank scroll pic ready to put the name on.

WORK AREA: 
Make a work folder and drop in a "blank.txt".
You can put the HTML code in this and save it as "make-banner.htm",
or your choice.

IMAGES:






Copy the scroll image (above) into the folder.
Copy the hero cartoon (above) into the folder.
Give the images simple names like "scroll.gif" and "toon.jpg".
Flip the hero cartoon and save.
Call the one you want on the left "toon-L.jpg"
and the other "toon-R.jpg".
Note that they are 170px tall.

HTML PIC ARRANGER:
This provides a box with various dimensions in it.
We will arrange the pics in this box as toon-L, scroll, and toon-R.

The HTML code is:
<!-- Put style on one line -->
<!-- The div width is sum of pics inside, plus a bit more for spacing.
 You can fiddle with dimensions till you get it like you want it. -->

<br /><br />
<div style="
margin:0px auto;
text-align:center;
width:660px;
height:auto;
border:1px solid black;
"
>

<!-- next is top blank -->
<div style="height:5px;"></div>
<!-- next are the images -->
<img src="toon-L.jpg">
<img src="scroll.gif">
<img src="toon-R.jpg">

<!-- next is bottom blank -->
<div style="height:5px;"></div>
</div>


When everything is laid out nicely,
do a CTRL-PRINT_SCREEN into CLIPBOARD.

Then drop the CLIPBOARD into MS-PAINT.

Crop it and save it, maybe as hero-banner.jpg, or whatever.

Then save it to host. Get hosted pic address.

INSERT HOSTED PIC:
Copy a banner code you used on 40s5.
Change the:
background-image:url('xxx');
to your hosted pic address.
All done, except recipient's name and/or color change.


There's a way to raise and lower the name to center it on the scroll.

<div style="height: 60px;">&nbsp;</div>

9px is about 1/8 inch, but this may depend on your windows setup.

CONCEIVE, BELIEVE, ACHIEVE!
Zenith #145
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:04/03/2023 12:52 AMCopy HTML

You can get other cartoons or whatever online, and make a few more as practice. Keep the height about 170px. The width can vary. The div width is about twice toon width + 360px. Fiddle with it if it's a bit off after checking.


You can experiment with changing the original scroll color.

Suggest using blu-scroll.gif, grn-scroll.gif, etc.

It can also be a jpg.

Maybe use something other than a scroll, if you can get something suitable.


https://images.google.com/

Niceguy2 #146
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:04/03/2023 2:06 AMCopy HTML

I may experiment a little later. 

Zenith #147
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:04/04/2023 4:49 AMCopy HTML

I spent an enjoyable afternoon and evening creating a CLUEDO game maker.


It reads a list of hosted characters, items, and locations, shuffles them and

produces a fully functional random aimoo game within 2 or 3 seconds after I name it.


The host is https://i.postimg, so it won't show up in chrome,

but then, people here are not using it anyway. I had  used postimg

for a BBC version, and didn't want to move the pics to

freeimage since all players here can see them.


First I had to debug a hand-made one, since aimoo ed

kicks the sh!t out of whatever works on desktop. Then

I used it as a template. It took about 9 hours to do the job.

I won't show the code .. LOL.

(Unless you beg me!  It has triple arrays in it ...)

Niceguy2 #148
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:04/04/2023 6:53 AMCopy HTML

Good job, Dave! 

Zenith #149
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:04/04/2023 2:55 PMCopy HTML

THE CONNECT-4 COLOR CODE FIX:


<!-- Joe's original code. Errors shown in red -->
<td style="width:80px;height:40px;
word-break:break-word;" align="center">
<font size="4">

&lt;span style="color:rgb(255, 255, 255);
background color="#361280"; &gt;


<b>Joe</b>
</font>
</td>

<!-- ===============fixed=============== -->
<td style="width:80px;height:40px;
word-break:break-word;" align="center">
<font size="4">

<span style="color:rgb(255, 255, 255);
background-color:#361280;">


<b>Joe</b>
</font>
</td>
CONCEIVE, BELIEVE, ACHIEVE!
Zenith #150
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:04/04/2023 3:03 PMCopy HTML

It doesn't take much to bugger-up code.


The = vs : for html vs css has got me before too. Also forgetting the hyphen, and the &llt; thing. Use the &llt; thing when you DON'T want code to work, like in a tutorial.


If the background-color thing was put into the TD style, instead of the SPAN,

the whole TD would turn dark blue/purple instead of what is currently showing.

If you moved color also, you can get rid of the SPAN.


Also, instead of trying to fix a foul-up, copy the good code from a previous post,

and re-play what the other players did!

Copyright © 2000- Aimoo Free Forum All rights reserved.
Skin by SandhillsDebby - Elements from DivaAmyMarie.blogspot.com