Welcome, Guest. Please login or register.


Author Topic: Xorgame 2 (Read 10360 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #15 on: 2017.November.20. 18:37:59 »
Nézze meg ezt a módosított kódot:

-

Observe this modified code:

-

Observa este código modificado:



edit: use the attached disk image.
« Last Edit: 2017.November.20. 18:46:42 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #16 on: 2017.November.20. 18:41:13 »
But I have found two new errors on the mouse driver:

- When it is reloaded the mouse system vars remain the old ones.
- On an attribute mode screen the pointer colour can't be changed.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #17 on: 2017.November.20. 19:58:02 »
Itt egy jobb, szebb, gyorsabb változat. Az időnként előjövő rejtélyes hiba még nincs javítva. Az egeres részét még nem néztem.

Here is a better, nicer, faster version. The eventual error has not been fixed yet. I haven't looked at the mouse code yet.

Aqui está una versión mejorada, más bonita y más rápida. El error eventual no es aún corrigido. No he aún mirado el código de ratón.

[ Guests cannot view attachments ]
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #18 on: 2017.November.20. 20:18:51 »
Megnéztem GFlorez egeres programját. Annyira nem tűnik bonyolultnak, de gőzöm sincs, hogyan kéne folytatni. (A régi "kurzort", az X-et el kell tüntetni, helyette az egérmutatóval való bökés lenne az eddigi tűzgomb funkciója. És a koordinátát is valahogy be kéne állítani, hogy ahova kattintunk, ott művelje azt, mintha a régebbi joystickos X lenne ott. Na meg az egérmutató sem látszik túl jól.) Remélem, sikerülni fog megcsinálni az egeres verziót!

Ok, I have looked at the program expranded with the mouse code. It doesn't seem to be so difficult, yet. However I don't have a single idea how to go on. (Instead of the old X "cursor" the click would replace the function of the fire button. The coordinates should be also set somehow in order that it should operate in the place where we click as if we were there with the old X cursor. Moreover, the pointer doesn't look very well in attribute mode.) Anyway, it is great! I hope we will succeed in adding mouse control to this game. :)
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #19 on: 2017.November.21. 00:32:21 »
Ez nem hiba, az attribútummód csak 0 vagy 255 értéket ad a mutató színeként. De látni fogom, hogyan lehetne javítani.

-

It is not an error, Attribute mode only permits 0 or 255 as pointer colours. But I will see how to improve it.

-

No es un error, el modo de Attribute solo permite 0 o 255 como colores de puntero. Pero veré cómo mejorarlo.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #20 on: 2017.November.21. 09:37:47 »
Ez a verzió már szinte kész. Van benne zene és hangeffektek is.
Azt nem írta senki, kell-e külső joystick támogatás is bele, így az nincs.
Az "elején néha vége is a játéknak" hiba még mindig nincs javítva.

---
GFlorez, is the colour number 255 not ok here for the pointer? El color número 255 no está bueno para el puntero?
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #21 on: 2017.November.21. 10:32:49 »
Az Attribútum mód két mutatót használ az LPT vonalhoz tartozó videoadat-címre, az egyiket a szövegre, csak két színt engedélyez, a második pedig 16 tintaszínt és 16 színű papírt. A Attribútum módban a második memória mutatót kell használnia a vezérlőkódon. De először foglalkoznom kell az LPT VRES bitjével, mert amikor beállított, minden pixellel egy attribútum byte-ot jelent, míg a visszaállításnál komoly attribútumokat jelent, ugyanúgy, mint a Spectrumon, de 8x9 képpontos vállalati karakter határon. Az első sokkal több memóriát vesz igénybe, és ha nem veszik figyelembe, a memória ismeretlen zónáit írhatok a VRES visszaállításakor.

-----

The Attribute mode uses the two pointers to video data address on the LPT line, one fot the text, than only permits two colours, and the second one that allows 16 ink colours and 16 paper colours. I must use the second memory pointer on the driver code for the Attribute mode. But first I have to deal with the VRES bit on the LPT, because when set it implies an attribute byte for every pixel, while when reset it means chunky attributes, much like on the Spectrum, but for an Enterprise  character boundary of 8x9 pixels. The first wastes a lot more of memory and, if not taken in account, I can write unknown zones of the memory when VRES is reset.

-----

El modo de Attribute utiliza los dos punteros de dirección de datos de video en la línea LPT, uno que solo permite dos colores en texto, y el segundo que permite 16 colores de tinta y 16 colores de papel. Debo utilizar el segundo puntero de memoria en el código del controlador para el modo Attribute. Pero primero tengo que lidiar con el bit VRES en el LPT, porque cuando está a 1 implica un byte de atributo para cada píxel, mientras que a 0 significa atributos gruesos, igual que en el Spectrum, pero para la trama de carácteres del Enterprise, 8x9 píxeles. El primero requiere mucha más memoria y, si no se toma esto en cuenta, puedo escribir en zonas de memoria desconocidas cuando VRES esté desactivado.

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #22 on: 2017.November.21. 10:37:05 »
GFlorez, is the colour number 255 not ok here for the pointer? El color número 255 no está bueno para el puntero?

Furcsán viselkedik ezzel a színnel, néha átlátszó.

---

It behaves strange with that colour, sometimes transparent.

---

Se muestra extraño con ese color, a veces transparente.

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #23 on: 2017.November.21. 18:18:27 »
Nagyon bonyolult, hogy több színt hajtson végre a mutatón, csak az attribútummódnál, jobb elkerülni a 0 színű programot a programban.

---

It is very complicate to implement more colours on the pointer only for the Attribute mode, better avoid using color 0 on your program.

---

Es muy complicado implementar más colores en el puntero solo para el modo Atribute, mejor evita el uso del color 0 en tu programa.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #24 on: 2017.November.21. 19:42:32 »
It is very complicate to implement more colours on the pointer only for the Attribute mode, better avoid using color 0 on your program.
You mean, I should replace the changed background colour to anything else? (E.g. printing some character in bias colours.)
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Xorgame 2
« Reply #25 on: 2017.November.21. 20:26:33 »
Yes, please avoid colour 0 because changing the colour used by the pointer implies big modifications on the mouse driver.

By now it only accepts two colours, 0 and 255 on the 183 system variable, that I think correspond to colours 0 and 1 on the palette.

But you only have to discard one of them to be the mouse pointer colour.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #26 on: 2017.November.22. 14:58:29 »
Késznek tekinthető változat.
A "néha egyből vége a játéknak" hiba javítva. A vonalak rajzolása kicsit gyorsabb. Az X színének egy újabb színt tettem be, hogy több szín legyen, de annyira nem feltűnő. Amikor "falon" állunk, akkor nem lehet ugyanaz a színe, mert nem látszana alatta a fal, nem lehetne kivenni, falon vagyunk-e vagy nem, így arra az esetre mindig ugyanaz a (másik) szín van. (Az X inverzét használja.)

Ez a joystickos verzió. Az egereshez picit át kéne majd írni pár dolgot (a háttérszín használata miatt), talán ma még megcsinálom.

---
This is the joystick version. The mouse version would need some modifications before (because of using the background colour). I may do it today.
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline endi

  • EP addict
  • *
  • Posts: 7298
  • Country: hu
  • grafikus, játékfejlesztõ, programozás, scifi, tudományok, vallás
    • Honlapom
Re: Xorgame 2
« Reply #27 on: 2017.November.23. 09:35:20 »
Vigyázat! Szektás vagyok! :)

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Xorgame 2
« Reply #28 on: 2017.December.31. 00:00:03 »
Ez a végleges verzió. Csak annyiban különbözik az előzőtől, hogy bele van írva, hogy a Spectrum játék ötlete alapján készült. Nehogy úgy tűnjön, ellopjuk mások ötletét.
[ Guests cannot view attachments ]

Még annyit lehetne gyorsítani, hogy ha vége a játéknak, nem elölről indul, hanem a már létező videólapokat rakja ki újra, de nincs nagy jelentősége.
Az egeres verzió még hátra van.
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline Lacika

  • EP addict
  • *
  • Posts: 3191
  • Country: hu
    • http://www.ep128.hu
Re: Xorgame 2
« Reply #29 on: 2017.December.31. 13:37:05 »
A játékból ki lehet valahogy lépni, vissza a menübe?