![]() |
Title: Game Code Development Area | |
friendsoffortiesfive > General > Games | Go to subcategory: |
Author | Content |
Zenith
|
|
Date Posted:02/05/2023 8:20 PMCopy HTML CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#426 |
Re:Game Code Development Area Date Posted:09/19/2023 2:17 PMCopy HTML Aimoo flipped the page! Please check previous page! When you are happy with the results, do CTRL-A and CTRL-C on the text file contents. It is now in the CLIPBOARD and can be pasted elsewhere with CTRL-V or rt-click PASTE (.. as in aimoo's game playing procedure). |
|
Zenith
|
#427 |
Re:Game Code Development Area Date Posted:09/19/2023 11:20 PMCopy HTML The thing to do next is to look at the code in TEST.TXT and change something. Then run it in HTML to see what happened. CONCEIVE, BELIEVE, ACHIEVE!
|
|
Niceguy2
![]() |
#428 |
Re:Game Code Development Area Date Posted:09/20/2023 1:55 AMCopy HTML Refresh my memory. What does Ctrl X do? |
|
Zenith
|
#429 |
Re:Game Code Development Area Date Posted:09/20/2023 5:05 AMCopy HTML CTRL-X copies but deletes .. CUTS. Used in JIGSAWS so it leaves a hole. That way you can't get 2 pieces the same as you can with CTRL-C. CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#430 |
Re:Game Code Development Area Date Posted:09/21/2023 1:01 PMCopy HTML Been dizzy for 2 days .. can't post much yet. |
|
Niceguy2
![]() |
#431 |
Re:Game Code Development Area Date Posted:09/22/2023 3:54 AMCopy HTML Been wondering where you were, Dave. Get well soon! |
|
Zenith
|
#432 |
Re:Game Code Development Area Date Posted:09/27/2023 8:24 PMCopy HTML I am not dead or sick. Yay! Dizziness lasted 3 or 4 days.
CONCEIVE, BELIEVE, ACHIEVE!
|
|
Niceguy2
![]() |
#433 |
Re:Game Code Development Area Date Posted:09/28/2023 12:55 AMCopy HTML Welcome back, Dave! You were sorely missed! |
|
Zenith
|
#434 |
Re:Game Code Development Area Date Posted:09/28/2023 1:09 AMCopy HTML Thanks, Joe. CONCEIVE, BELIEVE, ACHIEVE!
|
|
Niceguy2
![]() |
#435 |
Re:Game Code Development Area Date Posted:09/28/2023 1:19 AMCopy HTML I hate technical difficulties. |
|
Zenith
|
#436 |
Re:Game Code Development Area Date Posted:09/28/2023 2:15 AMCopy HTML Positioning nuggets and mines in the games: corrupt HQmCJQR.jpg to HQmCJQR.jpig. You do this with the CTRL-H window. Save as test.htm, and run it. Advise to make 2 prototypes with no mines or nuggets. Keep mine and nugget code at the top <!-- HERE --> Make ARCHIVES sub-folder for new games. Don't overwrite by accident. In GOLD_MINER the tree area is blank, so go down to BELOW GROUND. Notepad corrupts code if copied with WORD-WRAP on. I imagine you know by now that you EDIT the txt and RUN the html with a double-left-click. Both are the same except for EXTENSION, (the part after the dot). CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#437 |
Re:Game Code Development Area Date Posted:09/28/2023 3:00 AMCopy HTML CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#438 |
Re:Game Code Development Area Date Posted:09/28/2023 3:48 AMCopy HTML <!-- BELOW GROUND @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ --> ======= In this one my later edit is missing, so just add the red stuff for a nugget. Don't put it in img like I did one time. You get no nuggets showing up then. CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#439 |
Re:Game Code Development Area Date Posted:09/28/2023 1:57 PMCopy HTML The BENEFITS of NOTEPAD++ Free. Colored text (editable by user). Many computer languages (not required here, unless you want to do BBC also). Can edit HTML and run it. Can save macros, including changing newline code (very handy). Can add many plugins (for when you get proficient). Can open multiple files (good for copying stuff over to the target one). Tuts and help online since lots of programmers use it. === https://www.geeksforgeeks.org/how-to-install-notepad-plus-plus-on-windows/ You need to know if your comp is 64 bit or 32 bit prior to selection of install package. I'm using V7.6.3 and updated to V7.8.0. I kept both, due to extra plugins in first one. HTML looks same in both. CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#440 |
Re:Game Code Development Area Date Posted:10/06/2023 4:05 PMCopy HTML Joe: There's a couple of games running out. Do you want them left below the ===== in case I croak and you want to rerun them, or should I delete them and start fresh discussions? |
|
Zenith
|
#441 |
Re:Game Code Development Area Date Posted:10/06/2023 4:21 PMCopy HTML Joe: Are you able to work on your desktop to create a new game? You will need all that work area stuff and procedures in order to keep an archive of newly made games. You can copy some other game that is close to what you need, and change it around. Try the steps somewhere above. If you can do it, fine. If not, I think you should practice till you can do it. Hey, man, I'm 84, with dizzy spells and a f'ckd heart. Get any help you need while I'm still here! |
|
Zenith
|
#442 |
Re:Game Code Development Area Date Posted:10/06/2023 4:39 PMCopy HTML Basically: Make "WORK" folder. Put BLANK.TXT in there. Make sub-folder "ARCHIVES". Copy some game in aimoo HTML MODE with CTRL-A and CTRL-C. Open BLANK.TXT CTRL-V. Save as GAME-X.TXT Save as GAME-X.HTM Close LOOP: .... this is a label marking a spot to go to Click HTM to run Is it good yet? YES then GOTO DONE: NO then click TXT to edit. Save as GAME-X.TXT Save as GAME-X.HTM Close GOTO LOOP: DONE: .... this is a label marking a spot to go to Save game in ARCHIVE SUB-FOLDER(Make a game folder #whatever, and put HTM and TXT in there first. If it needs a pic, put that in also. Some hosts take a dive so you need that pic for a new host. ) |
|
Zenith
|
#443 |
Re:Game Code Development Area Date Posted:10/06/2023 5:11 PMCopy HTML Browser can't tell difference between HTM and HTML ... so save work typing. WARNING: If old HTM is still open, re previous post, it still shows the old stuff. CLOSE/OPEN or REFRESH, or similar word in EDGE. To move a file which is outside of a folder, CTRL-X it, move into target folder and CTRL-V. Can use right-click commands to do this also |
|
Niceguy2
![]() |
#444 |
Re:Game Code Development Area Date Posted:10/07/2023 4:21 AMCopy HTML Joe: There's a couple of games running out. Do you want them left below the ===== in case I croak and you want to rerun them, or should I delete them and start fresh discussions? Just delete them, Dave, and start new discussions. |
|
Niceguy2
![]() |
#445 |
Re:Game Code Development Area Date Posted:10/07/2023 4:26 AMCopy HTML Joe: Are you able to work on your desktop to create a new game? You will need all that work area stuff and procedures in order to keep an archive of newly made games. You can copy some other game that is close to what you need, and change it around. Try the steps somewhere above. If you can do it, fine. If not, I think you should practice till you can do it. Hey, man, I'm 84, with dizzy spells and a f'ckd heart. Get any help you need while I'm still here! Yes, I suppose I am "able" to do that, but I may not be "capable". I'm definitely able to copy some other game and change it around. Dave, don't lose hope. You may be around for ten years or more. Thanks for your offer of help! |
|
Zenith
|
#446 |
Re:Game Code Development Area Date Posted:10/07/2023 1:21 PMCopy HTML Thanks for your response, Joe. Re your capability, you just have to "order" what you want, mainly inline CSS. Of course, you have to put HTML tables and divs where they should be first. Don't blindly copy code. Ask yourself "Why did he do this?" If you hit a snag, just ask. No question too simple! Some of my code is rehashed from years ago, when I was learning. It may have extraneous code, errors, and ancient (deprecated) methods. Inheritance plays an important part in CSS. What you ask for first keeps going till you change it. That's what buggers up things, till you find out what's doing the interference. Sometimes, in a new game, you forget to add in a requirement. That's why you work on your desktop instead of posting in your mailbox ... too tedious. There is a "Zenith" standard for inline CSS, which I use mostly (see next post). No crappy box-sizing:border-box; or break-line stuff! The "Zenith" copyright line has a "position:relative;top:12px;" which is extra to that post. It centers the text in the available border-spacing. Check the bottom of a game to see how to use this. The effects of some CSS can be duplicated in HTML code. Below is a copy of my CSS codes that I can click to see when using my NP++. Suggest keep a copy in your work folder. Sub-folder TOOLS, or REFERENCE. (L-Click at top, SHIFT-L-click at end, CTRL-C. Paste into BLANK.TXT with CTRL-V.) CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#447 |
Re:Game Code Development Area Date Posted:10/07/2023 1:24 PMCopy HTML CSS INFO: (cascading style sheets)
IMPORTANT NOTE: This copy is in non-roaming Notepad++ main folder.
=================================================================
See more at: https://www.w3schools.com/CSSref/
=================================================================
**** SIZE
width:400px; ... width can be auto, or N% ... height follows width in images
height:500px; ... seldom required except in TD's
=================================================================
**** POSITION
margin: 0 auto; ... this centers the object in its container
=================================================================
**** TEXT
text-align:center; ... this centers the text or image within the container
font-size:30px; ... 42 is huge, normal is about 14
line-height: 30px; ... use 0px with images or you get blank space underneath
font-weight:900; ... maximum bold, normal 600
color:#663300; ... this pertains to font ... see chart link at bottom
=================================================================
**** BORDERS ETC
border:7px solid #663300; ... usually a thin outer line ... see below for options
border-spacing:25px; ... background color or image is located in here
border-radius:10px; ... used to add rounded corners to a box
padding: 0px; ... space around inside of a cell or div and its content
=================================================================
**** BACKGROUND
background-color:#FFFFCC;
background-image:url('http://groupbox.com/uploads/467792/htmltiles/bunny-tile.jpg');
NOTE: background-image takes precedence over background-color
=================================================================
**** BORDER EXPANSION
border: is a short form which includes:
border-width:
border-style:
border-color:
----
Some browsers will split the borders into:
border-left:
border-top:
border-right:
border-bottom:
----
**** BORDER STYLES
border styles can be:
solid .. used by Dave often, 5 to 10px wide
double .. used by Dave often, 10 to 20px wide
dotted .. seldom used
dashed .. seldom used
groove .. color is much lighter in Firefox .. seldom used
ridge .. color is much lighter in Firefox .. used by Dave once in a while
inset .. color is much lighter in Firefox .. seldom used
outset .. color is much lighter in Firefox .. seldom used
none .. seldom used
hidden .. seldom used
=================================================================
**** IMAGES
width:300px;
height:200px; ... specify if distorting, otherwise follows width
background-size:100% 100%; ... stretches image to fill box
background-repeat:no-repeat; ... see following:
-----------
repeat The background image is repeated both vertically and horizontally.
The last image will be clipped if it does not fit. This is default.
no-repeat The background-image is not repeated. The image will only be shown once.
repeat-x The background image is repeated only horizontally.
repeat-y The background image is repeated only vertically.
space The background-image is repeated as much as possible without clipping.
The first and last images are pinned to either side of the element,
and whitespace is distributed evenly between the images.
round The background-image is repeated and squished or stretched to fill
the space (no gaps).
initial Sets this property to its default value.
inherit Inherits this property from its parent element
=================================================================
**** COLORS
border colors can be:
name - specify a color name, like "red"
Hex - specify a hex value, like "#ff0000"
RGB - specify a RGB value, like "rgb(255,0,0)"
transparent
Color chart at: https://www.w3schools.com/colors/colors_picker.asp
=================================================================
font-family:
These can be listed in order of preference, with separating commas.
Arial
Arial Black
Comic Sans MS
Courier New
Georgia
Impact
Sans-serif
Serif
Times New Roman
Trebuchet MS
Verdana CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#448 |
Re:Game Code Development Area Date Posted:10/07/2023 2:35 PMCopy HTML Here's the copyright/promotion code: <div style="margin:0px auto;text-align:center;font-size:20px;font-weight:900;width:450px;color:#FFFFCC;position:relative;top:12px;"> CONCEIVE, BELIEVE, ACHIEVE!
|
|
Zenith
|
#449 |
Re:Game Code Development Area Date Posted:10/07/2023 3:47 PMCopy HTML Let me mention that the BLANK.TXT file and, if you save it, the BLANK.HTM file have the same contents. MS Notepad WILL open BLANK.TXT (if you tell it to). The browser WILL NOT run BLANK.TXT. The browser WILL run BLANK.HTM, or BLANK.HTML even if the code is bad. Of course, bad code might show nothing, or do strange things. MS Notepad WILL open BLANK.HTM/L if you right-click "OPEN WITH" >> "NOTEPAD". (Watch the "always" button ...@#$%) |
|
Niceguy2
![]() |
#450 |
Re:Game Code Development Area Date Posted:10/08/2023 4:20 AMCopy HTML Thanks Dave! That's very informative! I have a question... what is " "? By the way, I use a different chart for Hex Color Codes. |