Leaderboard


Popular Content

Showing content with the highest reputation on 02/07/19 in all areas

  1. 1 point
    Butch

    A design of a CHANGE PICTURE game

    There is a CHANGE PICTURE game at https://html5pcode.com/a1ychangep.htm that was designed to teach the art of coding. It uses structured programming, so it is easy to follow the logic of the design. The game is divided into small self contained pieces. It has a main program and a subprogram. The subprogram has routines that perform specific tasks when they are called by the main program. The game has links to YouTube videos that describe the operation of the main program and the subprogram routines. Once you learn how to design games like this one, you can go on to design your own games in JavaScript and/or a JS framework. This p-code lends itself to teaching coding because the source and object code are the same. The engine that created the code (source-code) is the same engine that executes the code (object code). This makes it possible to do the following options. A DATA OPTION allows you to view the game's data, while the game is running. A TRAIL OPTION allows you to execute a few instructions at a time, so you can see what each routine is doing. A REAL TIME (RT) OPTION allows you to change instruction values, while the game is running. The YouTube videos show how these options are used in the designing of the game. There are many other games written in this p-code at https://html5pcode.com
  2. 1 point
    There is a SUDOKU game at https://www.html5pcode.com/a1ysudoku.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is https://www.html5pcode.com The goal is to populate a SUDOKU puzzle matrix with the correct digits. The digits 1 to 9 must be found in each row, column, and (3x3) box. There is an ENTRY MATRIX where you can enter the digits. If your entry does not follow the rules, it will be rejected. If you want, it will display a matrix with all of the forced digits. You can also display the answer matrix. There are 100 different games. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  3. 1 point
    Butch

    MAZE game using an HTML5 P-code Engine

    There is a MAZE game at https://www.html5pcode.com/a1ymaze.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is https://www.html5pcode.com Find a PATH through the MAZE from the left side (RED BOX) to the right side (GREEN BOX). There are over a hundred ROOMS in the MAZE. A ROOM can have one exit door, 2 exit doors, or no exit doors. If the ROOM does not have an exit door, it is a DEAD END. If you come to a DEAD END, you must backtrack until you find another exit door. There is only one TRUE PATH from the RED SQUARE to the GREEN SQUARE. There are 100 different games. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  4. 1 point
    There is a CHI-SQUARED game at http://www.html5pcode.com/a1ychisquare.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com Test to see if 1000 observations are from a Normal Distribution. Select a Mean Value and a Standard Deviation for the Normal Distribution. Then do a CHI-SQUARED test to test for a Normal Distribution. The 9 P-Values will be shown. You can view the details for the Chi-Squared test. There are 100 different games. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  5. 1 point
    There is a PENNEY'S game at http://www.html5pcode.com/a1ypenneys.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com The goal is to maximize the probability of your sequence of 4 heads & tails occurring before another given sequence of 4 heads & tails. A coin is flipped until one of the two sequences occurs. A Markov Transition Matrix is used to determine the winner. There is a row in the matrix for each of the 16 possible sequences of 4 tosses. When one of the 2 sequences occurs, it stays on that same row of the matrix. There are 100 different games. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  6. 1 point
    There is a CUT CAKE game at http://www.html5pcode.com/a1ycutcake.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com The goal is to maximize the value of the 8 pieces of cake given to 8 people. There are 10 different toppings on the cake. Each person gives a value for each of the toppings. The cake has 24 sections, so each person can have 3 sections. The sections for each person must be contiguous. You can view the program's solution. There are 100 different games. Your solutions will be saved in the browser's local storage area. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  7. 1 point
    There is a CUT SHEET game at http://www.html5pcode.com/a1ycutsheet.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com You are to cut 10 different sized pieces out a large sheet. The quantity needed for each piece is given. The piece can be set to portrait or landscape. First select the piece you want to place. Then click on the sheet at the position you want to place the upper left hand corner of the piece. There are 100 games. Each game has different piece requirements. Your solution for each game is stored in the browser's local storage area. You can view the program's solution for each game. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  8. 1 point
    There is a CUT ROD game at http://www.html5pcode.com/a1ycutrod.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com You are to minimize the cost of cutting many bars of different lengths from 6 rods. Try to use the entire rod because the shorter the rod the less it is worth per unit of length. A rod of 50% of its original length is only worth 30 % of its original value. You can view the program's solution to the game. There are 100 different games. If you want, you can build your own game. Your game will be stored in a file within the local storage area of your browser. You can have up to 12 bars and 12 rods. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  9. 1 point
    There is a KNAPSACK game at http://www.html5pcode.com/a1yknapsack.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com The goal is to maximize the value of items placed in a knapsack. Each item has a value and a weight. The knapsack has a weight limit. The program uses Dynamic Programming and Branch and Bound to solve the problem. You can view the program solution. There are 100 games. Each game has 96 items. You can create your own knapsack game. Your game's data will be stored in the browser's local storage area. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  10. 1 point
    There is a REPLACE game at http://www.html5pcode.com/a1yreplace.htm The game uses a p-code. The p-code was written in HTML5 JavaScript. The home page is http://www.html5pcode.com The goal is to minimize a device's maintenance cost by replacing parts before they go dead. There is a cost for stopping the device (stop cost) and a cost for each part replaced. When the device is stopped, parts that are near their expected time-to-fail can be replaced. You decide what the replace time should be. There are 100 different games. You can make your own REPLACE PROBLEM. It will be saved in your browser's local storage. This game is written in a p-code. The p-code is executed by a p-code engine. If you click on PROGRAM in the RED STRIPE at the top, you can view the p-code programs. The p-code engine can execute the programs and it can edit the programs.There is a DATA option that allows you to see the program's data as it is being executed. There is a TRAIL option that allows you to execute the program in small steps. There is an RT, Real Time, option that allows you to change the program as it is executing. There are many YouTube videos that will show you how it works.
  11. 1 point
    New free tracks are ready for homes in your projects: On the Dark/Ominous 2 page: "Future Goth" (Looping) http://soundimage.org/dark-ominous-2/ On the Funny 5 page: "Arcade Goofballs" (Looping) http://soundimage.org/funny-5/ On the Fantasy 8 Page: "The Stream in Our Hollow" (Looping) "The Hidden Forest" (Looping) http://soundimage.org/fantasy-8/ And on the Puzzle Music 3 Page: "Quirky Puzzler" (Looping) http://soundimage.org/puzzle-music-3/ Enjoy!
  12. 1 point
    Dad72

    exclude mesh for Collision

    Hi, Is it possible to exclude certain meshes for collisions. For example, I would like all my characters to check the collision for the objects of the scenes, except with the other characters. In other words, all the characters do not collide with each other, but can do it with the objects of the scenes (wall, trees, rock ...) I am looking for something like: actor.checkCollisions= true; actor.excludeCollisions(Player); actor.excludeCollisions(NPC); But excludeCollisions does not exist, or something similar. Is this possible, how can this be done? Thank you