Git Product home page Git Product logo

msx_pgen's Introduction

Generación Procedimental

Programas para crear laberintos por Generación Procedimental usando el generador de números pseudoaleatorios del MSX

PGEN2.BAS

  LOAD"PGEN2.BAS",R

Pinta en pantalla un laberinto

Variando los valores de SD (línea 70) se obtienen distintos laberintos.

Un posible laberinto generado

PGEN5.BAS

 LOAD"PGEN5.BAS",R

Vista del laberinto por casillas, siempre que se use el mismo valor de SD (línea 110). El sprite de un coche sirve para recorrer el laberinto. Los cursores cambian la dirección, y se mueve permanentemente.

Al chochar con las paredes generalmente cambia de sentido, pero puede atravesar las paredes por efecto túnel si se insiste lo suficiente. Así se pueden visitar zonas originalmente desconectadas del laberinto.

LAB.ASM

 asmsx lab.bin

Rutina en código máquina para pintar las paredes del laberinto.

Compilar con asmsx. El fichero lab.bin creado es cargado por PGEN5.BAS.

Dirección de inicio y ejecución: &HC000

Enlace

http://cacharreomsx.blogspot.com/2024/01/generacion-procedimental.html

Disclaimer

Este código ni se mantiene ni se actualiza. Simplemente se comparte para quien pueda interesar. Úsalo por tu cuenta y riesgo.

msx_pgen's People

Contributors

plazaoj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.