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 #1
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

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

ERROR IN CLOSING <TR>

should be  </TR> IN EVERY EXAMPLE:

Apologies!

OK, Joe, it's time to make a small game TOTALLY BY HAND in Notepad.

Create a WORK folder someplace convenient.
Stick a BLANK.TXT in there, and open it.

We start by making a one-row, one column table:
============================================
<table style="">
  <tbody>
    <tr>
      <td style="">CONTENT</td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm.
Not much to look at when you run it, just CONTENT on the left.

Now we add some style to the table.
============================================
<table style="width:500px;height:500px;border:7px solid #CCCC00;">
  <tbody>
    <tr>
      <td style="">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it. Aha, it's shaping up!

Let's get CONTENT in the middle.
============================================
<table style="width:500px;height:500px;border:7px solid #CCCC00;">
  <tbody>
    <tr>
      <td style="text-align:center;">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it. Nicer!

How about a medium green inner border?
Folded styles work ok on desktop, but not in Aimoo.
I need to fold them in here.
============================================
<table style="width:500px;height:500px;border:7px solid #CCCC00;
padding:20px;background-color:#009900;">
  <tbody>
    <tr>
      <td style="text-align:center;">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it.
Well, crap, it didn't do just 20px padding!
Me-oh-mio!

Let's copy everything we have and replace CONTENT with it.
============================================
<table style="width:500px;height:500px;border:7px solid #CCCC00;
padding:20px;background-color:#009900;">
  <tbody>
    <tr>
      <td style="text-align:center;">
      
<!-- this is a comment -->
      
<table style="width:500px;height:500px;border:7px solid #CCCC00;
padding:20px;background-color:#009900;">
  <tbody>
    <tr>
      <td style="text-align:center;">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>

<!-- this is a comment -->

      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it.
Now there are 2 yellow borders.

We need to fix the two tables.
Take out height in outer table, and change width to auto,
and add border-spacing of 0.

Change second table background-color to #FFFFDD.
Set padding to 0 and add border-spacing of 0.

Padding and border-spacing are default 2px unless stated.
============================================
<table style="width:auto;border:7px solid #CCCC00;
padding:20px;border-spacing:0px;background-color:#009900;">
  <tbody>
    <tr>
      <td style="text-align:center;">
      
<!-- this is a comment -->
      
<table style="width:500px;height:500px;border:7px solid #CCCC00;
padding:0px;border-spacing:0px;background-color:#FFFFDD;">
  <tbody>
    <tr>
      <td style="text-align:center;">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>

<!-- this is a comment -->

      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it.
Well, well,well! We now have a 20px green "border",
which is our padding of the outer table.

Add margin:0px auto to outer table.
============================================
<table style="margin:0px auto;width:auto;border:7px solid #CCCC00;
padding:20px;border-spacing:0px;background-color:#009900;">
  <tbody>
    <tr>
      <td style="text-align:center;">
      
<!-- this is a comment -->
      
<table style="width:500px;height:500px;border:7px solid #CCCC00;
padding:0px;border-spacing:0px;background-color:#FFFFDD;">
  <tbody>
    <tr>
      <td style="text-align:center;">
        CONTENT
      </td>
    <tr>
  </tbody>
</table>

<!-- this is a comment -->

      </td>
    <tr>
  </tbody>
</table>
============================================
Save it as game1.htm and run it.
Hey, its centered now due to the margin code.

Not bad, but we need How-to-play blurb,
a header pic, some icons and blockers,
name spaces, and a 5x7 grid.
Coming in next lesson.
CONCEIVE, BELIEVE, ACHIEVE!
Zenith #2
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:02/05/2023 9:23 PMCopy HTML

DESIGN IMAGES FOR SMALL GAME TUTORIAL



header


red-wolf


green-wolf


magenta-wolf


red-riding-hood


start-sign


boulder-1


boulder-2


bush-1


tree


https://iili.io/H1Q6Jhg.jpg = header

https://iili.io/HABDokN.png = red-wolf

https://iili.io/HABDuQn.png = green-wolf

https://iili.io/HABD5EG.png = magenta-wolf

https://iili.io/HABDdI1.png = red-riding-hood

https://iili.io/HABDKBa.png = start-sign

https://iili.io/HABtQLu.png = boulder-1

https://iili.io/HABtLXe.png = boulder-2

https://iili.io/HABtbrx.png = bush-1

https://iili.io/HABDC2R.png = tree


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

Re:Game Code Development Area

Date Posted:02/06/2023 12:22 AMCopy HTML


The grid will look something like this:



The 2px gap between cells is due the default border-spacing not having been set to 0.

They look various widths here since I had to zoom out to get it all in my screen shot.

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

Re:Game Code Development Area

Date Posted:02/06/2023 12:32 AMCopy HTML


The instruction part will resemble this.


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

Re:Game Code Development Area

Date Posted:02/06/2023 12:58 AMCopy HTML

Yes, NOW I notice "the red riding hood". All part of DEBUGGING!
Niceguy2 #6
  • Rank:Diamond
  • Score:329800
  • From:USA
  • Register:01/12/2009 5:00 AM

Re:Game Code Development Area

Date Posted:02/06/2023 4:47 AMCopy HTML

CONTENT


CONTENT

 



CONTENT

 



CONTENT




CONTENT




CONTENT




CONTENT


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

Re:Game Code Development Area

Date Posted:02/06/2023 5:01 AMCopy HTML

GRRRR, I had it perfect, then edited it, and it messed everything up! 

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:02 AMCopy HTML

Do over...

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:09 AMCopy HTML

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

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:11 AMCopy HTML

Nope, still looks like crap.

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:16 AMCopy HTML

CONTENT

CONTENT


CONTENT


CONTENT


CONTENT



CONTENT



CONTENT


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

Re:Game Code Development Area

Date Posted:02/06/2023 5:16 AMCopy HTML

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:26 AMCopy HTML

CONTENT


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

Re:Game Code Development Area

Date Posted:02/06/2023 5:28 AMCopy HTML

EXTRA ROWEXTRAEXTRA

CONTENT
EXTRA COLUMN
   EXTRA NEW LINE

Okay, I copied your text exactly, and this is what it gives me. Something is off.

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

Re:Game Code Development Area

Date Posted:02/06/2023 5:29 AMCopy HTML

CONTENT


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

Re:Game Code Development Area

Date Posted:02/06/2023 5:30 AMCopy HTML

CONTENT

 
Still off.


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

Re:Game Code Development Area

Date Posted:02/06/2023 5:30 AMCopy HTML

CONTENT



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

Re:Game Code Development Area

Date Posted:02/06/2023 5:31 AMCopy HTML

CONTENT



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

Re:Game Code Development Area

Date Posted:02/06/2023 5:32 AMCopy HTML

CONTENT



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

Re:Game Code Development Area

Date Posted:02/06/2023 8:04 PMCopy HTML

<!-- this is a comment -->
</td>
</tr>
<tr>
<td>
<br>   reason for fat bottom
</td>
</tr>
</tbody>
</table>
Zenith #21
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:02/06/2023 8:25 PMCopy HTML

You got it  good in #11 post, Joe.

Very good work. I see you are a very determined person with all the tries you made.


<br> is a new-line, so that made the bottom fat in your last effort.

It can also be <br />. No difference to aimoo.

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

Re:Game Code Development Area

Date Posted:02/06/2023 8:32 PMCopy HTML

Were you able to see what each part of  the code did, Joe, and did you run it on your desktop? Work on TXT file and save as HTM to see it?


If you get Seamonkey browser you can code it and see its HTML by clicking a button.

But no code colors, like MS notepad.


The next part will be more complex. I had to do fixes to compensate for aimoo editor abnormalities.

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

Re:Game Code Development Area

Date Posted:02/06/2023 9:22 PMCopy HTML

You can check this part out and ask questions, Joe.

I did some changes to the part you already tried.

The grid, later, will push out the sides a bit due to some AUTO widths.


<div style="font-family:arial,sans-serif;">

<table style="line-height:0px;
margin:0px auto;
width:auto;
border:7px solid #CCCC00;
padding:20px;
border-spacing:0px;
background-color:#009900;">
<tbody>

<tr class="firstRow">
<td style="text-align:center;">

<!-- this is a comment -->

<table style="line-height:0px;
width:auto;
border:7px solid #CCCC00;
padding:20px;
border-spacing:0px;
background-color:#FFFFDD;">
<tbody>

<tr class="firstRow">
<td style="text-align:center;">

<!-- header -->
<div style="text-align:center;
border:8px solid #006600;
background-image:url('https://iili.io/HobIfTb.png');">

<strong style="color:#006600;
font-size:30px;line-height:30px;">
<br> ** WOLF PATROL **<br><br></strong>

<a href="https://www.random.org/integers/?num=1&amp;
min=1&amp;
max=3&amp;
col=1&amp;
base=10&amp;
format=html&amp;
rnd=new">
<img src="https://iili.io/H1Q6Jhg.jpg" 
style="border:20px solid #006600;" width="300"></a>

<strong style="color:#006600;
font-size:19px;line-height:30px;">

<br><br>
 Take turns to move<br>
 your wolf in the maze.<br>
 Prior to copy, click pic for<br>
 number of steps to take (1-3).<br>
<br>
 If you end up on top of someone<br>
 at the end of your count,<br>
 slide to the next vacant square.<br>
<br>
 Winner reaches<br>Red Riding-Hood first.<br>
 If you overshoot her, then<br>
 you may move only one square.<br>
<br>
 Good luck, and have fun!<br>
<br></strong>

<!-- ICON TABLE -->
<table style="width:auto;
margin:0px auto;
text-align:center;
border:#006600 7px solid;
background-color:#FFFFFF;">
<tbody>

<tr class="firstRow">
<td style="background-color:#FFFFDD;
text-align:center;
width:100px;
height:30px;
border:1px solid #006600;
font-weight:900;
color:#FF0000;">NAME</td>

<td style="background-color:#FFFFDD;
text-align:center;
width:100px;
height:30px;
border:1px solid #006600;
font-weight:900;
color:#009900;">NAME</td>

<td style="background-color:#FFFFDD;
text-align:center;
width:100px;
height:30px;
border:1px solid #006600;
font-weight:900;
color:#FF00FF;">NAME</td>
</tr>

<tr>
<td style="line-height:0px;
border:1px solid #006600;
width:100px;
height:100px;">
<img src="https://iili.io/HABDokN.png" 
width="80" height="80"></td>

<td style="line-height:0px;
border:1px solid #006600;
width:100px;
height:100px;">
<img src="https://iili.io/HABDuQn.png" 
width="80" height="80"></td>

<td style="line-height:0px;
border:1px solid #006600;
width:100px;
height:100px;">
<img src="https://iili.io/HABD5EG.png" 
width="80" height="80"></td>
</tr>
</tbody>
</table>

<p style="font-size:8px;line-height:8px;"><br></p>
</div>

<!-- The part below is to put the tail on above code -->
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
CONCEIVE, BELIEVE, ACHIEVE!
Zenith #24
  • Rank:Emerald
  • Score:89070
  • From:Canada
  • Register:07/31/2019 10:06 PM

Re:Game Code Development Area

Date Posted:02/06/2023 9:28 PMCopy HTML


** WOLF PATROL **



Take turns to move
your wolf in the maze.
Prior to copy, click pic for
number of steps to take (1-3).

If you end up on top of someone
at the end of your count,
slide to the next vacant square.

Winner reaches
Red Riding-Hood first.
If you overshoot her, then
you may move only one square.

Good luck, and have fun!

NAMENAMENAME


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

Re:Game Code Development Area

Date Posted:02/06/2023 9:35 PMCopy HTML

line-height:0px auto; will nullify ~5px spaces under pics, and stretching of border padding. Thanks, Aimoo!

You have to re-specify for following text or it piles up, since there is no height for it.

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