Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

oscarbraindead

107
Posts
1
Topics
460
Followers
62
Following
A member registered Jan 28, 2018 · View creator page →

Creator of

Recent community posts

Hi John! Just tried the new version of Torvin and Display256BMP works fine after LoadSpritePatterns command.

Thank you!

Hi! 

Another test:

#INCLUDE <torvin_next_foundry.bas>  
#INCLUDE <keys.bas>  
#INCLUDE <torvin_vortexmusic.bas>  
#INCLUDE <torvin_aysfx.bas>   
CONST   FONT_BANK AS UBYTE = 34  
CONST   DRIVER_BANK AS UBYTE = 36  
CONST   MUSIC_BANK AS UBYTE = 37  
CONST   SFX_BANK AS UBYTE = 39  
const   sprite_bank as ubyte = 50   
Init()  
Main()   
STOP   
SUB Init()      
    LoadToBanks("ASSETS/font256_1.spr",FONT_BANK,0)      
    LoadToBanks("ASSETS/ts4000.bin",DRIVER_BANK,0)      
    LoadToBanks("ASSETS/TestMusic.pt3",MUSIC_BANK,0)      
    LoadToBanks("ASSETS/gameSFX.afb",SFX_BANK,0)      
    LoadToBanks("ASSETS/cubo.spr",sprite_bank,0)     '<---- add a spr file  
END SUB   
' ============================================================================================  
'  Main Control Loop  
' ============================================================================================  
SUB Main()      
    DIM sKeyReleased AS UBYTE      
    dim scrollamount as ubyte            
    Music_Init(DRIVER_BANK, MUSIC_BANK)          
    SFX_Init(SFX_BANK)          
    Layer256On(1,0)           
    Music_Start()           
  
    SpritesOn()          
    'LoadSpritePatterns(64,0,sprite_bank,0)       '<------  is the problem here?     
    InitSmallSprite(0,100,100,1)                    
    Display256BMP("ASSETS/prueba.bmp")
    DO                  
        scrollamount=scrollamount+1                  
        ScrollLayer256(scrollamount,0)                   
        WaitScanLine(192)                  
        Music_PlayFrame()                  
        SFX_PlayFrame()          
    LOOP  
END SUB

If you run this example with the  LoadSpritePatterns command uncommented the program freezes in the Display256BMP statement. I think that any Display256BMP command AFTER a LoadSpritePatterns results in a freeze.

Please, let me know if I can do something to help. 

Thank you!

(1 edit)

Hi John, 

Just a quick example based on the code generated by the Foundry for a new standard program:

#INCLUDE <torvin_next_foundry.bas> 
#INCLUDE <keys.bas> 
#INCLUDE <torvin_vortexmusic.bas> 
#INCLUDE <torvin_aysfx.bas>  
CONST   FONT_BANK AS UBYTE = 34 
CONST   DRIVER_BANK AS UBYTE = 36 
CONST   MUSIC_BANK AS UBYTE = 37 
CONST   SFX_BANK AS UBYTE = 39 
const   sprite_bank as ubyte = 50  
Init() 
Main()  
STOP  
SUB Init()     
LoadToBanks("ASSETS/font256_1.spr",FONT_BANK,0)     
LoadToBanks("ASSETS/ts4000.bin",DRIVER_BANK,0)     
LoadToBanks("ASSETS/TestMusic.pt3",MUSIC_BANK,0)     
LoadToBanks("ASSETS/gameSFX.afb",SFX_BANK,0)     
LoadToBanks("ASSETS/cubo.spr",sprite_bank,0)     '<---- add a spr file 
END SUB  
' ============================================================================================ 
'  Main Control Loop 
' ============================================================================================ 
SUB Main() 
    DIM sKeyReleased AS UBYTE 
    dim scrollamount as ubyte     
 
    Music_Init(DRIVER_BANK, MUSIC_BANK)     
    SFX_Init(SFX_BANK)     
    Layer256On(1,0)      
    Music_Start()      
    Display256BMP("ASSETS/prueba.bmp")
    SpritesOn()     
    'LoadSpritePatterns(64,0,sprite_bank,0)       '<------  is the problem here?
    InitSmallSprite(0,100,100,1)      
        
    DO         
        if multikeys(KEYL) then             
            while multikeys(KEYL)             
            wend             
            Display256BMP("ASSETS/font256_1.bmp")         
        end if          
        scrollamount=scrollamount+1         
        ScrollLayer256(scrollamount,0)          
        WaitScanLine(192)         
        Music_PlayFrame()         
        SFX_PlayFrame()     
    LOOP 
END SUB

While then program is running, if you press L key, it loads a new BMP and the scroll continues... but if you uncomment the 

LoadSpritePatterns

line, when you press the L key, the program freezes...

I hope it helps. Please, let me know if I must do another example.

Best regards

Hi John!

Thanks for create and share Torvin Foundation. 

I've been testing it for a few days now and I'm really enjoying it. Congratulations! I don't know if I've encountered a bug or if I'm doing something wrong, but if I load a BMP file with `Display256BMP()` and then load another one with the same function, the game freezes. The same thing happens if I use `Display256BMP()` after initializing the sprites with: 

`SpritesOn()`

`LoadSpritePatterns(64,0,SPRITE_BANK,0)`

the game freezes.

I don't know if it's a bug and if there's an easy fix.

Thank you very much!

Hi! Thank you so much for try the game and showing it in the video!

Supongo que ya lo sabes, pero si usas la versión 1.4.5, puedes ver los prototipos de las funciones en la carpeta /include. Además, en la carpeta /optional, está el código en sí de cada función. Otra posibilidad es descargar la documentación que han generado en el repositorio de la reimplementación de DragonBasic en: https://github.com/uli/dragonbasic/tree/master/dbapi

Por cierto, he intentado compilar el código de este repo varias veces y no he conseguido hacerlo... da un montón de problemas.

De este mismo repositorio puedes bajar algunos ejemplos (https://github.com/uli/dragonbasic/tree/master/examples) que, si no recuerdo mal, funcionan en DragonBasic 1.4.5 con pocas o ninguna modificación.

También en gbadev.org hay algunos ejemplos con código fuente, aunque la mayoría son de versiones anteriores (1.2 y 1.3) y los cambios que hay que hacer son bastante serios.

Estaría bien que hubiera algún tipo de servidor de Discord o algo así para comentar, aprender e intercambiar código.

Muchas gracias a ti por probarlo y comentar. Y sobre DragonBasic, la verdad es que en su día lo ignoré por completo y ahora que lo estoy probando me parece un lenguaje/compilador bastante potente, el único problema que le veo es que hay poca documentación y poca base de usuarios. En unos días subiré otro juego que estoy terminando hecho en DragonBasic, tipo Defender.

Saludos!

Thank you!

Hi Tony, can I buy GB Basic from itch.io or just on steam? Thanks in advance.

Sorry, I can't release the p8.png file since this format includes the graphics in an open format (anyone with pico8 could access them) and this could conflict with the license of the sprites that I bought and used in the game. Thank you.

Hi Juan, sorry I'm not interested. Please DON'T include my games in the USB. Thank you. Best regards.

Hi! I'm glad you like it. The game has no end, you just have to improve your previous score.  

Best regards!

great, I hope you like it

Thank you, BrewOtaku!

Hola! Acabo de subir el .p8, si necesitas otro formato, por favor, coméntamelo. Me da un poco de vergüenza publicarlo porque no soy el programador más elegante del mundo... :)

Hi Mucky-taters! I'm glad you like it!

(1 edit)

Muchas gracias, Snabisch! La verdad es que cualquier juego, por simple que sea, con tus músicas mejora. Gracias por crearlas!

Muchas gracias, Maestro!

Thank you! :D

Great game Johan. 

Very fun and addictive.

Muchas gracias,  crack! Lo próximo lo estoy haciendo para algo que te gusta mucho a ti... Microsoft... msdos!

(1 edit)

perfect! Thanks for testing and comment!

Hi Bruno, all the games were updated with list-view icon. Just download the SDK2.0_xxxx.zip of each game.

Thank you.

Best regards

Hi, sure, I'll look for info about them and this weekend I'll try to add list icons to the games. Thank you. Regards.

(1 edit)

Thank you for play it!

Gracias Arnau!

Muchas gracias por testearlo, crack

Gracias a ti por probarlo y comentar!

Hahaha!

Jajajajaja, saludos, crack! La verdad es que la GameBoy es muy sencillita y muy agradable de programar. La cuestión es no estar quieto, nunca. 

Very fun game, well done!

Thank you ozn8ter for play it!

Hi, I've just updated a new version with the ghost bug fixed. The .gb file is smaller now and the same file works for gb/gbc machines. Sorry, the color palette for gbc remains the same by now. Thanks for the bug report.

Hi gingerbeardman! If you take the big pill the ghost runaway from you and not reach the screen edge. In your case is the ghost trapped on the edge without take the big pill?

Hi! thanks for your comments. Yes, it a little bit harder than the original one, maybe for the game speed. Thanks for the bug report, I'll upload this weekend a version with it fixed. Regarding the color palette, I'll try include it. I must to study how to do it as I don't know well how color palettes work in GBC.

Thank you!

Thanks for playing and comment!

Hi TJ, I'm glad you liked the game. Thank you for the video, I love the passion you put in your videos!

Best regards!

Thanks, Steve!

Gracias, crack!

Hi! thanks for your comment