BASIC

Author Topic: How to run a program on Raspbian  (Read 1771 times)

Offline quangdx

  • Mr. Polyvector
  • ***
  • Posts: 233
  • work hard / play hard
    • View Profile
    • Asobi tech
How to run a program on Raspbian
« on: 2015-Sep-08 »
Hello,
my brother has just got hold of a Raspberry PI and is running Raspbian on it,
does anyone know how to get my games to run on it?
Do I compile for Raspberry PI or Linux?
Also any idea how I would make it automatically boot up into my game.
So we can install it into an arcade cab of sorts.

many thanks, Quang

Asobi tech - the science of play.
Spare time indiegame developer.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: How to run a program on Raspbian
« Reply #1 on: 2015-Sep-09 »
8) It would be nice to build an arcade cabinet or a table.  :good: Now I have been testing GLBasic on the RPI2 recently and also with simple Arduino input and output via a shell gpio command. This is cool for hardware buttons, controls and displays, and also fine for a entertainment unit or kiosk.  :P

There are issues though with only able to use LOADFONT, PRINT and DRAWSRITE.  :help: Music is fine and but some 2D polys or even 3D would be good.  :sick:
« Last Edit: 2015-Sep-09 by matchy »

Offline quangdx

  • Mr. Polyvector
  • ***
  • Posts: 233
  • work hard / play hard
    • View Profile
    • Asobi tech
Re: How to run a program on Raspbian
« Reply #2 on: 2015-Sep-09 »
I want to know how to run the games I make with GLBasic on a Raspberry PI.
If I compile for GLBasic I get a .bin file and if I compile for Linux I get a .linux file.

I used the ./ before the file name and some of the programs I've compiled start playing music,
but then error on trying to load a font :(
Anyone have any ideas?
Asobi tech - the science of play.
Spare time indiegame developer.

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: How to run a program on Raspbian
« Reply #3 on: 2015-Sep-09 »
I can load the font fine by placing it in the Media subfolder and then LOADFONT "Media/font.png" and not using SETCURRENTDIR$().
« Last Edit: 2015-Sep-09 by matchy »

Offline quangdx

  • Mr. Polyvector
  • ***
  • Posts: 233
  • work hard / play hard
    • View Profile
    • Asobi tech
Re: How to run a program on Raspbian
« Reply #4 on: 2015-Sep-21 »
So it looks like the problem I am having is
VSync unsupported on old SDL versions (before 1.2.10)

I am still using GLBasic 12.308
The PI I believe is running SDL 2.0.3
Asobi tech - the science of play.
Spare time indiegame developer.