Ninjabba Posted March 15, 2012 Share Posted March 15, 2012 if you look into the peg solitaire source I posted on this board you can find the full project including gfx and chipper sounds. It compiles out of the box for linux (ubuntu for sure) if you use cc65. I havent tried anything on windows though c programming and some basic understanding of the lynx is all you need.. and a lot of time. Good think I peeked into this topic here btw. I was close to ask around how to implement a clock Quote Link to comment Share on other sites More sharing options...
philippe Posted May 25, 2012 Share Posted May 25, 2012 (edited) scoll demo with 56 sprites décaration multiple 0.1 - LYNX - kit BLL (newcc65) mascot1.zip C:lynx/mascot1 http://www.mirari.fr/YyYw Edited May 25, 2012 by philippe Quote Link to comment Share on other sites More sharing options...
obschan Posted September 22, 2012 Share Posted September 22, 2012 Also have a look at http://www.classicga...per's_Reference Wookie and me have tried to collect everything you need for getting started. Some of the stuff goes pretty fast for a beginner. But there is already several working examples like how to write "Hello World!" on the Lynx screen. Writing code is both educational and fun. And you don't have to buy anything to get started. Just run your code in Handy. Karri Is the site definitively down? Anyone has a mirror? I remember that it was containing some doc on the new cc65 and comLynx, I would like to have a look. Quote Link to comment Share on other sites More sharing options...
+karri Posted September 22, 2012 Share Posted September 22, 2012 Is the site definitively down? Anyone has a mirror? I remember that it was containing some doc on the new cc65 and comLynx, I would like to have a look. The content is safe but it the site was hacked. I believe that Wookie will set it up again with a different web engine. -- Karri Quote Link to comment Share on other sites More sharing options...
obschan Posted September 22, 2012 Share Posted September 22, 2012 Understood, thank you. Sad, that was a good source for Lynx dev. Hopefully Wookie will put it back online. Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted September 24, 2012 Share Posted September 24, 2012 I tried setting up code blocks yesterday with little success. Ive got little experience messing with C compilers and that make file in the MS C++ 2010 hello world project I looked at scared the hell out of me... Are there any tutorials covering the compiler and linker exes? Quote Link to comment Share on other sites More sharing options...
LX.NET Posted September 24, 2012 Share Posted September 24, 2012 Did you try my tutorials at http://atarilynxdeveloper.wordpress.com? It covers setting up the development environment and explains the mak file, plus has a Hello World sample that is ready to use. The next weeks I will probably get around to doing more tutorial stuff (joystick and sprites). I have used the stuff that I wrote down to create Tiny Lynx Adventure and Pitfall! Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted November 24, 2012 Share Posted November 24, 2012 Just a quick thank you for your tutorials on setting up Visual Studio to work with both Handy and CC65. Both up and running now, albeit on an older build of CC65 probably - I downloaded it 6 months ago and never got around to finishing VS settings. Quote Link to comment Share on other sites More sharing options...
LX.NET Posted November 25, 2012 Share Posted November 25, 2012 You're very welcome. I am glad someone is reading them As always, feedback is welcome. Feature requests as well. Quote Link to comment Share on other sites More sharing options...
philippe Posted December 3, 2012 Share Posted December 3, 2012 Did you try my tutorials at http://atarilynxdeve...r.wordpress.com? It covers setting up the development environment and explains the mak file, plus has a Hello World sample that is ready to use. The next weeks I will probably get around to doing more tutorial stuff (joystick and sprites). I have used the stuff that I wrote down to create Tiny Lynx Adventure and Pitfall! Thank you for your tutorials ! I work with Notepad and command prompts, but i don't know type the following commands with your program game.batch file: cmd @set CC65_HOME=c:\Program Files (x86)\cc65 @path=%path%; cd %CC65_HOME%\bin cc65 -t lynx game.c ca65 -t lynx game.s cl65 -t lynx -o game.lnx 1.o %CC65_HOME%\lib\lynx-160-102-16.o lynx-stdjoy.o \ game.o lynx.lib Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted December 3, 2012 Share Posted December 3, 2012 Not really sure what you mean here? Are you saying that you dont know how to run those commands from the command prompt? Or are you saying that you need to modify the example youve attached in order to compile some other code? Quote Link to comment Share on other sites More sharing options...
philippe Posted December 4, 2012 Share Posted December 4, 2012 I don't know how to run thode commands for the command prompt. Quote Link to comment Share on other sites More sharing options...
LX.NET Posted December 4, 2012 Share Posted December 4, 2012 I don't know how to run thode commands for the command prompt. The first one (cmd) is what you run from the Start menu. On Windows this is the Windows key or Start button, then type cmd.exe and press ENTER. You'll get a command prompt from which you can run the statements individually. I recommend creating a batch file to make this work repeatable. Better yet, don't run those commands like that but create a make file that tells the make tool what to do. Even better better, pick yourself a graphical user interface (Eclipse, Visual Studio, Code::Blocks) and get editor and compilation (make.exe) support. Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted December 4, 2012 Share Posted December 4, 2012 Yes, there's a free version of Visual Studio 2010 Express you can download - then using the make file following LX.NETs tutorial is easy! Quote Link to comment Share on other sites More sharing options...
philippe Posted December 4, 2012 Share Posted December 4, 2012 The first one (cmd) is what you run from the Start menu. On Windows this is the Windows key or Start button, then type cmd.exe and press ENTER. You'll get a command prompt from which you can run the statements individually. I recommend creating a batch file to make this work repeatable. Better yet, don't run those commands like that but create a make file that tells the make tool what to do. Even better better, pick yourself a graphical user interface (Eclipse, Visual Studio, Code::Blocks) and get editor and compilation (make.exe) support. I use freeware ide: Notepad++ for lynx newcc65, and Code::Blocks for Megadrive SGDK. My new makefile, but fatal error, help me please : @set CC65_HOME="C:\Program Files (x86)\cc65" copy %CC65_HOME%\tgi\lynx-160-102-16.tgi co65 --code-label _lynxtgi lynx-160-102-16.tgi ca65 -t lynx -o lynx-160-102-16.o lynx-160-102-16.s rm lynx-160-102-16.tgi rm lynx-160-102-16.s copy %CC65_HOME%\joy\lynx-stdjoy.joy co65 --code-label _lynxjoy lynx-stdjoy.joy ca65 -t lynx -o lynx-stdjoy.o lynx-stdjoy.s rm lynx-stdjoy.joy rm lynx-stdjoy.s cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA @REM fatal error ! ca65 -o game.o game.s cl65 -t lynx -o game.lnx lynx-160-102-16.o lynx-stdjoy.o game.o lynx.lib pause Quote Link to comment Share on other sites More sharing options...
obschan Posted December 5, 2012 Share Posted December 5, 2012 What is the error message you are getting exactly ? You only get a "fatal error" ? Quel est ton message d'erreur ? Tu as seulement "fatal error" ? Quote Link to comment Share on other sites More sharing options...
philippe Posted December 5, 2012 Share Posted December 5, 2012 What is the error message you are getting exactly ? You only get a "fatal error" ? Quel est ton message d'erreur ? Tu as seulement "fatal error" ? C:\ln>cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA cc65.exe: No input files C:\ln>ca65 -o game.o game.s Fatal error: Cannot open input file 'game.s': No sush file or directory C:\ln>cl65 -t lynx -o game.lnx lynx-160-102-16.o lynx-stdjoy.o game.o lynx.lib ld65.exe: Error: Input file 'game.' not found http://www.mirari.fr/j96s Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted December 5, 2012 Share Posted December 5, 2012 That first command (CC65) is not passed any actual sources, the params after it are supposed to be populated with things, thats why it errors. Quote Link to comment Share on other sites More sharing options...
obschan Posted December 5, 2012 Share Posted December 5, 2012 You need to feed cc65 with your C file so it can create the asm source file (game.s) Give a try with "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA game.c" ---- Il te faut ajouter le nom de ton fichier .c a cc65 pour qu'il puisse creer le fichier assembleur (game.s). Essaye "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA game.c" Quote Link to comment Share on other sites More sharing options...
philippe Posted December 6, 2012 Share Posted December 6, 2012 You need to feed cc65 with your C file so it can create the asm source file (game.s) Give a try with "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA game.c" ---- Il te faut ajouter le nom de ton fichier .c a cc65 pour qu'il puisse creer le fichier assembleur (game.s). Essaye "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA game.c" Thanks, but a new problem with... lynx.hhttp://www.mirari.fr/e3Zq Quote Link to comment Share on other sites More sharing options...
obschan Posted December 6, 2012 Share Posted December 6, 2012 "This module may only be used when compiling for the Lynx game console" -> "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA -t lynx game.c" Quote Link to comment Share on other sites More sharing options...
philippe Posted December 6, 2012 Share Posted December 6, 2012 "This module may only be used when compiling for the Lynx game console" -> "cc65 --code-name CODE --rodata-name RODATA --bss-name BSS --data-name DATA -t lynx game.c" Thanks ! Last lign command with lynx.lib is a new problem: http://www.mirari.fr/YXeA Quote Link to comment Share on other sites More sharing options...
obschan Posted December 6, 2012 Share Posted December 6, 2012 This one means that lynx.lib has been compiled with a different version of cc65 than the one you are using. Don't you have multiple cc65 accessible in your path ? Or have you copied in your cc65 directory files coming from different binary archives ? ---- Ca ca veut dire que lynx.lib a ete compile avec une version differente de cc65 que celle que tu utilises en ce moment. N'aurais-tu pas plusieurs version de cc65 accessibles dans ton path ? Ou as-tu copie dans ton repertoire cc65 des fichiers venant de differentes sources ? Quote Link to comment Share on other sites More sharing options...
philippe Posted December 8, 2012 Share Posted December 8, 2012 This one means that lynx.lib has been compiled with a different version of cc65 than the one you are using. Don't you have multiple cc65 accessible in your path ? Or have you copied in your cc65 directory files coming from different binary archives ? ---- Ca ca veut dire que lynx.lib a ete compile avec une version differente de cc65 que celle que tu utilises en ce moment. N'aurais-tu pas plusieurs version de cc65 accessibles dans ton path ? Ou as-tu copie dans ton repertoire cc65 des fichiers venant de differentes sources ? Now i use cc65 Flavor and it's ok ! Thanks ! http://www.atariage.com/forums/topic/195876-catkanoid-by-sebastian-mihai/ Quote Link to comment Share on other sites More sharing options...
philippe Posted December 13, 2012 Share Posted December 13, 2012 (edited) Hi, For a sprite, i want to convert : fda.o : fda.bmp $(SPRPCK) -t6 -p2 -a000000 $< $(ECHO) .global _fda > $*.s $(ECHO) .segment \"$(RODATA_SEGMENT)\" >> $*.s $(ECHO) _fda: .incbin \"fda.spr\" >> $*.s $(AS) -t lynx -o $@ $(AFLAGS) $*.s i want to convert these makefile lines, in Batch file(cmd). AS=ca65 http://www.mirari.fr/EASU Edited December 13, 2012 by philippe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.