First Symbos Application

Página 43/47
36 | 37 | 38 | 39 | 40 | 41 | 42 | | 44 | 45 | 46 | 47

Por edoz

Prophet (2465)

imagem de edoz

18-02-2014, 11:28

Ok. so I can make the titles already and convert them to what we need for this project.

I found some useful information over here !

Link
LINK2

Other question is all of this possible ? (we will see :D) The idea to have chuckie egg (a real classic game) in a window drives me crazy :D

See the video for all the levels..
Video

Por Trebmint2

Master (242)

imagem de Trebmint2

18-02-2014, 12:06

TBH Chuckie Egg seems a good choice for symbos. Not sure whats on the links as my virus software detects a threat

Por edoz

Prophet (2465)

imagem de edoz

18-02-2014, 14:49

strange that you are not able the link. It's a java version of chuckie. Maybe I can re-use some code.

The levels are like this:


// Level description
// size must be 20x28
//
// 0=blank
// 1=wall
// 2=grain
// 3=egg
// 4=ladder
//
// note swans 1-4 are always present,
// swans 5-8 only appear level 25+ 

var level1=[
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,3,4,0,2,0,0,0,3,2,0,0,0,0,3],
[0,0,0,0,0,1,1,4,1,1,0,1,1,1,1,1,1,0,1,1],
[0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,4,0,0,3,2,0,0,0,0,0,0,0,0],
[0,0,0,0,3,0,0,4,0,1,1,1,0,0,0,0,0,0,0,0],
[0,0,0,1,1,1,1,4,0,0,0,0,0,0,0,0,2,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,1,1,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,0,0,1,1,0,0,0,0,0],
[0,0,0,4,0,0,0,4,0,0,3,1,1,0,0,0,0,0,0,0],
[0,0,3,4,0,2,0,4,0,1,1,0,0,0,0,2,0,3,0,0],
[0,0,1,4,1,1,1,4,1,0,0,0,0,0,1,1,1,1,1,0],
[0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,0,4,0,0,0],
[0,3,0,4,0,2,0,4,0,0,0,4,0,3,2,0,4,0,3,0],
[0,1,1,1,1,1,1,4,1,1,1,4,1,1,1,1,4,1,1,0],
[0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,0,4,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,0,4,0,0,0],
[0,0,0,0,0,0,0,4,0,0,0,4,0,0,0,0,4,0,0,0],
[0,0,2,0,3,0,0,4,0,0,0,4,0,2,0,0,4,0,0,0],
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]




Por edoz

Prophet (2465)

imagem de edoz

18-02-2014, 14:55

hmm every graphic item 16x8 that makes 320x224 .. hmmm

Por Trebmint2

Master (242)

imagem de Trebmint2

18-02-2014, 15:21

Thats not the size the spectrum version was? It was 32x20 8x8pixels

Por edoz

Prophet (2465)

imagem de edoz

18-02-2014, 15:30

I think it was original created on the BBC acorn not ? The images included in this project are 120x28 with 16x8 pixels.
If I re- use those it's to big not ? I can resize those to 8x4 but that makes 160x112 (a bit small not ?) But 320x224 is to big for symbos ? hmmm 8x8 titles is 256x160 ...

Por Prodatron

Paragon (1836)

imagem de Prodatron

18-02-2014, 15:36

edoz wrote:

hmm every graphic item 16x8 that makes 320x224 .. hmmm

The main-playfield of the original game on the Amstrad CPC has a size of 20 x 16 blocks = 160 x 128 pixels (without the scrore-etc.-display at the top of the screen). Each platform has a height of 4 blocks, each block is 8x8 pixels height, so with 4 platforms you have 4x4x8=128 pixels. Each platform has a width of 20 blocks, so you get 8x20=160 pixels. It's running in Screen-Mode0, that means, that the pixel have a ratio of 2:1 (double width).

Por Trebmint2

Master (242)

imagem de Trebmint2

18-02-2014, 15:42

Actually this brings up an issue for symbasic that I'd like peoples input on. And that is of defining arrays.
At the moment you
Global blob(10,10)
This will just setup an Int array of 10x10 filled with 0's. Clearly it would be Beneficial if I could setup an array with the contents already in place like the
blob=[0,1,1,2,3,4,5,6,7,8],
[3,0,0,1,3,4,5,6,7,8], etc

Part of the problems with basic and we have to still remember its effectively still 64k of programming ram is that
blob(0,0)=45 requires us to perform a calculation to put 45 into the array position of blob(0,0). Thats calls I have to store 45 in the running code, and have the 2 bytes to store the Int. In reality Blob(0,0)=45 is taking around 20 bytes. This cant be avoided in actual code, but its a simple waste of space when placing values into the array at the start of an application. Always been an issue for basic, not helped by the dreadful DATA, READ, RESTORE commands which I've avoided adding so far as they are clunky, wasteful and TBH suck.

Okay what I'm looking for in Symbasic is a seemingly natural format for filling vars, 1 & 2 dimensional arrays as a compiler directive.
Okay Global var1%=0 or Local xpos%=49 is obvious, but how would you like to see arrays defined as a directive in symbasic? But no { } allowed

Por edoz

Prophet (2465)

imagem de edoz

18-02-2014, 17:09

Is it maybe possible to load your data from disk when in runtime ? So that way you can store them just once in the memory ? Seem as you do for sheets.

Por Trebmint2

Master (242)

imagem de Trebmint2

18-02-2014, 17:26

Yes of course thats possible using the openfile,readline,readbyte,readint,readfloat,closefile functions

Im just looking for a basic like way of populating arrays with data as a compiler directive that wont take any memory of the application.

Página 43/47
36 | 37 | 38 | 39 | 40 | 41 | 42 | | 44 | 45 | 46 | 47